void () { try { doTest("y"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { Assert.assertEquals("There is already a field <b><code>y</code></b>. It will conflict with the renamed local variable", e.getMessage()); return; } fail("Conflicts were not found"); }