assertEquals(categoryName, r.getLoggerName());
if (r.getLoggerName() != null) {    assertEquals(categoryName, r.getLoggerName()); }
    private void assertMessageLogged(SessionID sessionID, String categoryName, String message) {        Logger logger = Logger.getLogger(categoryName);        TestHandler testHandler = null;        Handler[] handlers = logger.getHandlers();        for (int i = 0; i < handlers.length; i++) {            if (handlers[i] instanceof TestHandler) {                testHandler = (TestHandler) handlers[i];                break;            }        }        assertNotNull(testHandler);        assertEquals(1, testHandler.records.size());        LogRecord r = (LogRecord) testHandler.records.get(0);        assertEquals(categoryName, r.getLoggerName());        assertEquals(sessionID + ": " + message, r.getMessage());    }