@Test
    public void testTestLogHandlerRegistration() {
        MockHandler handler = new MockHandler();
        LogDispatcher dispatcher = new LogDispatcher();
        dispatcher.registerLogHandler(handler);

        assertNotNull(dispatcher.getLogHandlers());
        LogHandler[] handlers = dispatcher.getLogHandlers();
        assertNotNull(handlers);
        assertEquals(1, handlers.length);
        assertTrue(handler == handlers[0]);
    }
Unit tests for thge LogMessage class.

@author Bjorn Borud
logserver/src/test/java/com/yahoo/logserver/test/LogDispatcherTestCase.java