void () { invokeCompletion(getTestName(false) + ".java"); assertPreferredItems(0, "addX", "addY"); myFixture.type("y\n;set1.ad"); myFixture.completeBasic(); assertPreferredItems(0, "addY", "addX"); myFixture.type("x\n;set2.ad"); myFixture.completeBasic(); assertPreferredItems(0, "addX", "addY"); }