void () { try { doTest(new String[]{"pack1.Class1", "pack1.Class2"}, "pack2"); fail("Conflicts expected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("Package-local class <b><code>Class2</code></b> will no longer be accessible from field <b><code>User.class2</code></b>", e.getMessage()); } }