void () { try { doTest(false); } catch (CommonRefactoringUtil.RefactoringErrorHintException e) { assertEquals("Cannot find constant initializer for parameter", e.getMessage()); return; } fail("Initializer shoul not be found"); }