void (@NotNull final T configuration, @NotNull PsiElement elementToRightClickOn) { super.checkConfiguration(configuration, elementToRightClickOn); Assert.assertThat("Wrong name generated", configuration.getName(), Matchers.containsString("folderWithTests")); Assert.assertThat("Bad target generated", configuration.getTarget().getTarget(), Matchers.containsString("folderWithTests")); final VirtualFile virtualFolder = myFixture.getTempDirFixture().getFile("folderWithTests"); assert virtualFolder != null : "Can't find folder"; final PsiDirectory psiFolder = PsiManager.getInstance(getProject()).findDirectory(virtualFolder); assert psiFolder != null : "No psi for folder found"; myFixture.renameElement(psiFolder, "newFolder"); Assert.assertThat("Name not renamed", configuration.getName(), Matchers.containsString("newFolder")); Assert.assertThat("Target not renamed", configuration.getTarget().getTarget(), Matchers.containsString("newFolder")); }