void () { PsiClass srcClass = myFixture.addClass("public class Source { @Override public int hashCode() { return 0;}}"); PsiClass targetClass = ((PsiJavaFile)myFixture.configureByText("MyTest.java", "public class MyTest {}")).getClasses()[0]; List<MemberInfo> infos = TestIntegrationUtils.extractClassMethods(srcClass, true); doTest(srcClass, targetClass, infos, new JUnit4Framework()); myFixture.checkResult(""" public class MyTest { @org.junit.Test public void testHashCode() { } }""", true); //repeat doTest(srcClass, targetClass, infos, new JUnit4Framework()); myFixture.checkResult(""" public class MyTest { @org.junit.Test public void testHashCode() { } @org.junit.Test public void testHashCode1() { } }""", true); }