void () { try { doTest("B", "A", 0); fail("Conflict expected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("Enum type won't be applicable in the current context", e.getMessage()); } }