void () { try { doTest("p2", "p1/B.java"); fail("Conflict not detected!"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { Assert.assertEquals("Package-local class <b><code>B</code></b> will no longer be accessible from field <b><code>A.b</code></b>", e.getMessage()); } }