void () { myFixture.configureByText("a.java", "class Foo {" + "{ bar<caret> }" + "void bar(boolean a);" + "void bar(String a);" + "void bar(int a);" + "void bar2(int a);" + "}"); LookupElement[] elements = myFixture.completeBasic(); assertEquals("(String a)", LookupElementPresentation.renderElement(elements[1]).getTailText()); myFixture.getLookup().setCurrentItem(elements[1]); myFixture.type('\n'); assertEquals("<html>boolean a</html>", parameterPresentation(0, -1)); assertEquals("<html>String a</html>", parameterPresentation(1, -1)); assertEquals("<html>int a</html>", parameterPresentation(2, -1)); checkHighlighted(1); }