void () { try { doTest(); fail("Should be shown a error hint"); } catch (CommonRefactoringUtil.RefactoringErrorHintException e) { assertEquals("No applicable functional interfaces found", e.getMessage()); } }