@Test
public void testLogger2() {

    Logger logger = new Logger(ctx);
    logger.open();
    TestLogService tls = new TestLogService();
    ctx.registerService(LogService.class.getName(), tls, null);
    Assert.assertEquals("Precondition", 0, tls.logData.size());
    Throwable th = new Throwable();
    logger.log(LogService.LOG_INFO, "Hi", th);
    Assert.assertEquals(1, tls.logData.size());
    LogData ld = tls.logData.get(0);
    Assert.assertEquals(LogService.LOG_INFO, ld.level);
    Assert.assertEquals("Hi", ld.message);
    Assert.assertEquals(th, ld.throwable);
}