void (String codeBefore, String expectedCodeAfter) { myFixture.configureByText("A.groovy", codeBefore); new UnwrapHandler().invoke(getProject(), myFixture.getEditor(), myFixture.getFile()); myFixture.checkResult(expectedCodeAfter); }