@Test
public void testSocket() throws Exception {

    activate();
    sendEventOnSocket(newLoggingEvent("Sample message"));
    waitUntilEventCountHandled(1);
    assertEquals("Event(s) should have been correctly handled", 1, eventAdmin.getPostEvents().size());
}