void () { try { doTest("B", "A", 0); fail("conflict expected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("Field <b><code>B.ONE</code></b> is written to, but an interface is only allowed to contain constants.", e.getMessage()); } }