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

        assertEquals(0, handler.flushCalled);
        assertEquals(0, handler.closeCalled);

        dispatcher.close();
        assertEquals(0, handler.closeCalled);
    }
Unit tests for thge LogMessage class.

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