void () { try { doTest("B", "A", 0); fail("conflict expected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("Enum constant <b><code>B.A</code></b> won't be compilable when moved to class <b><code>A</code></b>.", e.getMessage()); } }