void () { myFixture.addClass("abstract class ATest extends junit.framework.TestCase {" + " public void testMe() {}\n" + "}"); myFixture.addClass("public class ChildTest extends ATest {}"); final SMTestProxy testProxy = new SMTestProxy("testMe", false, "java:test://ChildTest/testMe"); final Project project = getProject(); final GlobalSearchScope searchScope = GlobalSearchScope.projectScope(project); testProxy.setLocator(JavaTestLocator.INSTANCE); final Location location = testProxy.getLocation(project, searchScope); assertNotNull(location); assertInstanceOf(location, MethodLocation.class); //navigation to the method in abstract super class final PsiElement element = location.getPsiElement(); assertInstanceOf(element, PsiMethod.class); final PsiMethod method = (PsiMethod)element; assertEquals("testMe", method.getName()); final PsiClass containingClass = method.getContainingClass(); assertNotNull(containingClass); assertEquals("ATest", containingClass.getQualifiedName()); //include method "from" child class to rerun final String presentation = TestMethods.getTestPresentation(testProxy, project, searchScope); assertEquals("ChildTest,testMe", presentation); }