@Test
void shouldRequestToStdoutByDefault() throws IOException {

    final PrintStream original = System.out;
    final PrintStream stream = mock(PrintStream.class);
    System.setOut(stream);
    try {
        final HttpLogWriter unit = new StreamHttpLogWriter();
        unit.write(new SimplePrecorrelation("", Clock.systemUTC()), "foo");
        verify(stream).println("foo");
    } finally {
        System.setOut(original);
    }
}