void () { String testName = getTestName(false); configureByFile(BASE_PATH + "before" + testName + ".java"); GenerateDelegateHandler handler = new GenerateDelegateHandler(); try { handler.setToCopyJavaDoc(true); handler.invoke(getProject(), getEditor(), getFile()); } finally { handler.setToCopyJavaDoc(false); } checkResultByFile(BASE_PATH + "after" + testName + ".java"); }