void () { myFixture.configureByText("a.java", "class Foo { { Enu<caret> } }"); myFixture.completeBasic(); myFixture.type("m\n");// select 'Enum' myFixture.type("; try {} catch(E"); myFixture.completeBasic(); myFixture.assertPreferredCompletionItems(0, "Exception", "Error"); }