### Question:
LogMessage implements LogMessageInterface { @Override @Deprecated public String toString() { if ( StringUtils.isBlank( message ) ) { return subject; } else if ( StringUtils.isBlank( subject ) ) { return getMessage(); } return String.format( "%s - %s", subject, getMessage() ); } LogMessage( String subject, LogLevel level );  LogMessage( String message, String logChannelId, LogLevel level );  LogMessage( String message, String logChannelId, Object[] arguments, LogLevel level ); @Override @Deprecated String toString(); @Override LogLevel getLevel(); @Deprecated void setLevel( LogLevel level ); @Override String getMessage(); @Deprecated void setMessage( String message ); @Override String getSubject(); @Deprecated void setSubject( String subject ); @Override String getLogChannelId(); @Deprecated void setLogChannelId( String logChannelId ); @Override Object[] getArguments(); @Deprecated void setArguments( Object[] arguments ); boolean isError(); @Override String getCopy(); void setCopy( String copy );  }### Answer:
@Test public void testToString() throws Exception { LogMessage msg = new LogMessage( "Log message", "Channel 01", LogLevel.DEBUG ); msg.setSubject( "Simple" ); assertEquals( "Simple - Log message", msg.toString( ) ); }