void () { PsiClass aClass = myFixture.addClass(""" @org.junit.Ignorepublic class TestClass { @org.junit.Test public void testFoo() throws Exception {} }"""); final SMTestProxy testProxy = new SMTestProxy("TestClass", false, "java:test://TestClass/TestClass"); final Project project = getProject(); final GlobalSearchScope searchScope = GlobalSearchScope.projectScope(project); testProxy.setLocator(JavaTestLocator.INSTANCE); Location location = testProxy.getLocation(project, searchScope); assertNotNull(location); PsiElement element = location.getPsiElement(); assertEquals(aClass, element); }