void () { PsiClass c = createClass("Foo"); PsiClass[] tests = new PsiClass[] { createTest("FooTestCase"), createTest("FooFixture"), createTest("FooAbc"), createTest("TestFoo"), createTest("TestCaseFoo"), createTest("FixtureFoo"), createTest("AbcFoo"), createTest("AbcFooAbc")}; assertSameElements(TestFinderHelper.findTestsForClass(c), tests); for (PsiClass each : tests) { assertSameElements(TestFinderHelper.findClassesForTest(each), c); } }