Service { String getName() { return serviceName; } Service(Logger logger, String name); @Override String toString();  }
@Test public void testGetName() { Service service = new Service(logger, "service1"); Assert.assertEquals("service1", service.getName()); }