void () { try { perform(); fail("Conflict expected"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("Field 'anObject' won't be initialized inside class initializer", e.getMessage()); } }