@Test
public void testSocketMultipleClients() throws Exception {

    activate();
    Runnable runnable = new Runnable() {
        @Override
        public void run() {
            try {
                sendEventOnSocket(newLoggingEvent("Sample message"));
            } catch (Throwable e) {
                e.printStackTrace();
            }
        }
    };
    // starts 2 client threads
    Thread thread;
    thread = new Thread(runnable);
    thread.start();
    thread = new Thread(runnable);
    thread.start();
    waitUntilEventCountHandled(2);
    assertEquals("Event(s) should have been correctly handled", 2, eventAdmin.getPostEvents().size());
}