@Test
public void testLogger3() {

    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());
    ServiceReference sr = new MockServiceReference();
    logger.log(sr, LogService.LOG_INFO, "Hi");
    Assert.assertEquals(1, tls.logData.size());
    LogData ld = tls.logData.get(0);
    Assert.assertSame(sr, ld.serviceReference);
    Assert.assertEquals(LogService.LOG_INFO, ld.level);
    Assert.assertEquals("Hi", ld.message);
}