    @Test(timeout = 1000)
    public void testTwoLines() {

        Log mockLog = EasyMock.createStrictMock(Log.class);
        mockLog.info("Two peas in a bucket.");
        mockLog.info("Big ham ham ham.");
        EasyMock.expectLastCall();
        EasyMock.replay(mockLog);

        InputStream in = new ByteArrayInputStream("Two peas in a bucket.\nBig ham ham ham.\n".getBytes());
        StreamLogger logger = new StreamLogger(in, mockLog);
        logger.run();

        EasyMock.verify(mockLog);
    }