@Test
public void testUnregisterService() {

    dsm.startup();
    String name = "myNewService";
    dsm.registerService(name, "AZ");
    String service = dsm.getServiceByName(name, String.class);
    assertNotNull(service);
    assertEquals("AZ", service);
    dsm.unregisterService(name);
}