void () { myFixture.configureByText("a.groovy", """ foo = [ helloWorld: 1, "hello-world": { hw<caret> f } ]"""); performEditorAction(IdeActions.ACTION_HIPPIE_COMPLETION); assert myFixture.getEditor().getDocument().getText().contains(" hello-world\n"); performEditorAction(IdeActions.ACTION_HIPPIE_COMPLETION); assert myFixture.getEditor().getDocument().getText().contains(" helloWorld\n"); myFixture.getEditor().getCaretModel().moveToOffset(myFixture.getEditor().getDocument().getText().indexOf(" f") + 2); performEditorAction(IdeActions.ACTION_HIPPIE_COMPLETION); assert myFixture.getEditor().getDocument().getText().contains(" foo\n"); }