void () { PsiClass psiClass = mySource.createClass("ATest", TEST_CODE); assertNotNull(psiClass); JUnitConfiguration configuration = createConfiguration(psiClass); psiClass = mySource.createClass("Application", APPLICATION_CODE); assertNotNull(psiClass); rename(psiClass, "NewName"); checkClassName("ATest", configuration); mySource.createPackage("pkg"); psiClass = mySource.findClass("NewName"); assertNotNull(psiClass); move(psiClass, "pkg"); checkClassName("ATest", configuration); }