@Test
public void shouldLogOnDoneForEachExceptions() {

   AssertionLoggerHandler.startCapture();
   try {
      final CountingIOCallback countingIOCallback = new CountingIOCallback(true);
      final DelegateCallback callback = new DelegateCallback(Collections.singleton(countingIOCallback));
      callback.done();
      Assert.assertTrue(AssertionLoggerHandler.findText("AMQ142024"));
   } finally {
      AssertionLoggerHandler.stopCapture();
   }
}