private final ByteArrayOutputStream output = new ByteArrayOutputStream();
private final PrintStreamFailureLogger failureHandler = new PrintStreamFailureLogger(new PrintStream(output));
@Test
public void logs_uncaught_exceptions() {
failureHandler.uncaughtException("the actor", "the message", new DummyException());
String output = this.output.toString();
assertThat(output, containsString("uncaught exception"));
assertThat(output, containsString("the actor"));
assertThat(output, containsString("the message"));