@Test
public void timestamps_are_shown_as_seconds_since_start_with_microsecond_precision() {

    final Queue<Long> fakeNanoTime = new LinkedList<>();
    fakeNanoTime.add(1000000L);
    fakeNanoTime.add(1234567L);
    PrintStreamMessageLogger logger = new PrintStreamMessageLogger(new PrintStream(output)) {
        @Override
        protected long nanoTime() {
            return fakeNanoTime.poll();
        }
    };
    logger.onMessageSent("message1");
    assertThat(output.toString(), containsString("[   0.000235]"));
}