outputStreamMock.close();
EasyMock.expectLastCall();
EasyMock.replay(logMock, filterMock, outputStreamMock);
LogPrinter printer = new LogPrinterImpl(logMock);
printer.setOutputStream(outputStreamMock);
printer.print(filterMock);
EasyMock.verify(logMock, filterMock, outputStreamMock);
}