@Test
public void testGetLastNLines() {

    CollectingLogOutputStream instance = new CollectingLogOutputStream();
    instance.processLine("add a line of funky output", 1);
    instance.processLine("add another line of groovy output", 2);
    List<String> output = instance.getLastNLines(1);
    assertTrue("output does not match", output.size() == 1 && output.get(0).contains("groovy"));
}