FrameworkLockHolder frameworkLockHolder = createMock(FrameworkLockHolder.class);
operation.setFrameworkLockHolder(frameworkLockHolder);
frameworkLockHolder.writeLock();
frameworkLockHolder.writeUnlock();
replay(frameworkLockHolder);
ModuleStateHolder moduleStateHolder = createMock(ModuleStateHolder.class);
Application application = TestApplicationManager.newApplicationManager(null, moduleStateHolder, null).getCurrentApplication();