void () { setupLoadingFilter(); PsiClass aClass = myJavaFacade.findClass("pack.MyClass2", GlobalSearchScope.allScope(myProject)); String packageName = ((PsiJavaFile)aClass.getContainingFile()).getPackageName(); assertEquals("pack", packageName); teardownLoadingFilter(); }