void (String text, String expected) { myFixture.configureByText("MyTest.java", text); new BaseGenerateTestSupportMethodAction.MyHandler(TestIntegrationUtils.MethodKind.TEST) .invoke(myFixture.getProject(), myFixture.getEditor(), myFixture.getFile()); myFixture.checkResult(expected); }