void () { myFixture.configureByText("Test.java", "class Test { int foo() { return 1 } }<caret>"); String expected = "class Test { int foo() { return 1; } }"; assertEquals(expected, myFixture.getIntentionPreviewText("Insert")); myFixture.launchAction("Insert"); myFixture.checkResult(expected); }