use of org.apache.logging.log4j.message.ReusableObjectMessage in project logging-log4j2 by apache.
the class Log4jLogEventTest method testToImmutableNotSame.
@Test
public void testToImmutableNotSame() {
final LogEvent logEvent = new Log4jLogEvent.Builder().setMessage(new ReusableObjectMessage()).build();
final LogEvent immutable = logEvent.toImmutable();
assertSame(logEvent, immutable);
assertFalse(immutable.getMessage() instanceof ReusableMessage);
}
Aggregations