void () { myFixture.configureByText("Test.java", "class Test {<caret>}"); myFixture.completeBasic(); // 'abstract' selected myFixture.assertPreferredCompletionItems(0, "abstract", "boolean", "byte", "char", "class"); myFixture.performEditorAction("EditorLookupSelectionDown"); // 'boolean' selected myFixture.performEditorAction("EditorLookupSelectionDown"); // 'byte' selected myFixture.performEditorAction("EditorLookupSelectionUp"); // 'boolean' selected myFixture.type('\n'); myFixture.checkResult("class Test {boolean}"); }