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