void () { try { doTest(); fail("Unable to perform is expected"); } catch (CommonRefactoringUtil.RefactoringErrorHintException e) { assertEquals(""" Cannot perform refactoring. There are multiple output values for the selected code fragment: x : int, y : int.""", e.getMessage()); } }