CommandProcessor.getInstance().executeCommand(myFixture.getProject(), new Runnable() {
public void run() {
ApplicationManager.getApplication().runWriteAction(new Runnable() {
public void run() {
ModuleRootManager rootManager = TestUtil.getModuleRootManager(myFixture.getProject(), "t1");
JavaRefactoringFactory factory = JavaRefactoringFactory.getInstance(myFixture.getProject());
MoveDestination moveDestination = factory.createSourceRootMoveDestination("tx", rootManager.getSourceRoots()[0]);
factory.createMoveClassesOrPackages(new PsiElement[]{activatorClass}, moveDestination).run();
}
});
}
}, "test", "testid");
assertThat(manifest.getText(), endsWith("Bundle-Activator: tx.Activator\n"));