void () { myFixture.addClass("public class ABxxZ {}"); final String testName = getTestName(false); myFixture.configureByFile(testName + ".xml"); myFixture.complete(CompletionType.BASIC, 2); assertEquals("ABxxZ", myFixture.getLookupElements()[0].getLookupString()); assertEquals("ABxxCDEF", myFixture.getLookupElements()[1].getLookupString()); selectItem(myFixture.getLookupElements()[1], Lookup.NORMAL_SELECT_CHAR); checkResultByFile(testName + "_after.xml"); }