@Test
public void dumpsAllThreads() throws Exception {

    final ByteArrayOutputStream output = new ByteArrayOutputStream();
    threadDump.dump(output);
    assertThat(output.toString())
            .isEqualTo(String.format("runnable id=100 state=RUNNABLE%n" +
                                             "    at Blah.blee(Blah.java:100)%n" +
                                             "%n" +
                                             "%n"));
}