void () { PsiPackage psiPackage = JavaPsiFacade.getInstance(myProject).findPackage(""); JUnitConfiguration allInProjectConfiguration = createConfiguration(psiPackage, (Module)null); Module module1 = getModule1(); MapDataContext context = new MapDataContext(); VirtualFile root = ModuleRootManager.getInstance(module1).getContentRoots()[0]; PsiDirectory psiDirectory = PsiManager.getInstance(myProject).findDirectory(root); context.put(PlatformCoreDataKeys.PSI_ELEMENT_ARRAY, new PsiElement[] {psiDirectory}); context.put(CommonDataKeys.PROJECT, myProject); context.put(PlatformCoreDataKeys.MODULE, module1); assertFalse(new AllInPackageConfigurationProducer().isConfigurationFromContext(allInProjectConfiguration, ConfigurationContext.getFromContext(context, ActionPlaces.UNKNOWN))); }