public void testLogStringDurationIsNotZero() throws Exception {
Logger logger = EasyMock.createMock(Logger.class);
logger.isInfoEnabled();
EasyMock.expectLastCall().andReturn(true).atLeastOnce();
logger.info(EasyMock.<Marker>isNull(), EasyMock.startsWith("Received: 10"));
EasyMock.expectLastCall().once();
logger.info(EasyMock.<Marker>isNull(), EasyMock.startsWith("Received: 20"));
EasyMock.expectLastCall().once();
EasyMock.replay(logger);
ThroughputLogger underTest = new ThroughputLogger(new CamelLogger(logger));