void () { try { doTest("foo2"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { Assert.assertEquals("Method call would be linked to \"method <b><code>RenameTest.foo2(Long)</code></b>\" after rename", e.getMessage()); return; } fail("Conflicts were not found"); }