Socket socket = serverSocket.accept();
ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
logger.setLevel(Level.DEBUG);
ILoggingEvent event = new LoggingEvent(logger.getName(), logger,
Level.DEBUG, "test message", null, new Object[0]);
LoggingEventVO eventVO = LoggingEventVO.build(event);
oos.writeObject(eventVO);
oos.flush();
ILoggingEvent rcvdEvent = appender.awaitAppend(DELAY);
assertNotNull(rcvdEvent);
assertEquals(event.getLoggerName(), rcvdEvent.getLoggerName());
assertEquals(event.getLevel(), rcvdEvent.getLevel());
assertEquals(event.getMessage(), rcvdEvent.getMessage());
}