void () { try { doTest("p.B", "void method()", "finalMethod"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { Assert.assertEquals(""" Method finalMethod() will override\s a method of the base class <b><code>p.A</code></b> Renaming method will override final "method <b><code>A.finalMethod()</code></b>\"""", e.getMessage()); return; } fail("Conflicts were not found"); }