void () { try { doTest(new String[]{"pack1.Class1"}, ""); fail("Conflicts expected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("class <b><code>pack1.Class1</code></b> won't be accessible from the default package", e.getMessage()); } }