    @Test
    public void testServiceManager() {


        try (final ServiceManager<SomeInterface> manager = new ServiceManager<>(SomeInterface.class);) {
            manager.start(new TestInfrastructure("testManager", null, null, null));
            final SomeInterface retrieved = manager.getAssociatedInstance(typeId);
            assertEquals(expectedClass, retrieved.getClass());
        }
        assertEquals(locatorCalled, Factory.locatorCalled);
    }