void () { checkPreferredItems(0, "const1", "const2", "constx1", "constx2"); myFixture.getLookup().setCurrentItem(myFixture.getLookupElements()[2]); myFixture.type("\n);\nmethodX(cons"); myFixture.completeBasic(); assertPreferredItems(0, "constx1", "constx2", "const1", "const2"); }