LogMessageService extends LoggingServiceImpl { public void setLoggingFormat(MessageLogger ml) { loggingFormat = ml; } LogMessageService();  LogMessageService(LoggingLevel level);  LogMessageService(LoggingLevel level, String loggingPrefix);  LogMessageService(String uniqueId); @Override void doService(AdaptrisMessage msg); String getLogPrefix(); void setLogPrefix(String s); MessageLogger getLoggingFormat(); void setLoggingFormat(MessageLogger ml); @SuppressWarnings("deprecation") MessageLogger loggingFormat();  }
@Test public void testSetLoggingFormat() throws Exception { LogMessageService srv = new LogMessageService(LoggingLevel.ERROR, "testSetLoggingFormat: "); assertNull(srv.getLoggingFormat()); assertEquals(PayloadMessageLogger.class, srv.loggingFormat().getClass()); srv.setLoggingFormat(new MinimalMessageLogger()); assertEquals(MinimalMessageLogger.class, srv.loggingFormat().getClass()); }