void () { PsiClass t = createTest("FooBarBaz"); PsiClass[] classes = new PsiClass[] { createClass("Foo"), createClass("Bar"), createClass("Baz"), createClass("FooBar"), createClass("BarBaz")}; // not to find classes: createClass("FooBaz"); // adjacent-words only createClass("ooBar"); // start with word createClass("az"); // whole word assertSameElements(TestFinderHelper.findClassesForTest(t), classes); for (PsiClass each : classes) { assertSameElements(TestFinderHelper.findTestsForClass(each), t); } }