void () { try { doTest("input", false, false, false, "Object", false); } catch (Exception e) { assertEquals("Error message:Cannot perform refactoring.\nUnknown expression type.", e.getMessage()); return; } fail("Should not be able to perform refactoring"); }