// Need to wait complete to be called first or the test would be invalid.
// We use a latch instead of forcing a sleep here
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
context.onError(1, "Poop happens!");
t.join();
Assert.assertEquals(1, failures.get());