void () { try { doTest("Super"); fail("Conflict was not detected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { String message = e.getMessage(); assertEquals("Method <b><code>Super.foo()</code></b> has 1 usage that is not safe to delete.", message); } }