@Test
public void testGetAllLinesAsString() {

    CollectingLogOutputStream instance = new CollectingLogOutputStream();
    instance.processLine("add a line of funky output", 1);
    instance.processLine("add another line of groovy output", 2);
    String output = instance.getAllLinesAsString();
    assertTrue("output does not match", output.contains("funky") && output.contains("groovy"));
}