void () { PsiClass psiClass = mySource.createClass("ATest", TEST_CODE); assertNotNull(psiClass); JUnitConfiguration configuration = createConfiguration(psiClass); PsiPackage psiPackage = mySource.createPackage("pkg"); move(psiClass, "pkg"); checkClassName("pkg.ATest", configuration); rename(psiPackage, "newPkg"); checkClassName("newPkg.ATest", configuration); psiPackage = mySource.findPackage("newPkg"); mySource.createPackage("pkg2"); move(psiPackage, "pkg2"); checkClassName("pkg2.newPkg.ATest", configuration); }