DSpaceServiceManager implements ServiceManagerSystem { public Map<String, Object> getServices() { checkRunning(); Map<String, Object> services = new HashMap<String, Object>(); for (ServiceManagerSystem sms : serviceManagers) { try { for (Entry<String, Object> entry : sms.getServices().entrySet()) { if (! services.containsKey(entry.getKey())) { services.put(entry.getKey(), entry.getValue()); } } } catch (Exception e) { log.error("Failed to get list of services from service manager ("+sms.getClass()+"): " + e.getMessage(), e); } } return services; } DSpaceServiceManager(DSpaceConfigurationService configurationService); protected  DSpaceServiceManager(DSpaceConfigurationService configurationService, String... springXmlConfigFiles); boolean isRunning(); void notifyServiceManagerReady(); @Override void shutdown(); @Override void startup(); void registerService(String name, Object service); @Override void registerServiceNoAutowire(String name, Object service); T registerServiceClass(String name, Class<T> type); void unregisterService(String name); T getServiceByName(String name, Class<T> type); List<T> getServicesByType(Class<T> type); List<String> getServicesNames(); boolean isServiceExists(String name); Map<String, Object> getServices(); void pushConfig(Map<String, Object> properties); static void configureService(String serviceName, Object service, ConfigurationService config); static void initService(Object service); static void shutdownService(Object service);  }
@Test public void testGetServices() { dsm.startup(); Map<String, Object> services = dsm.getServices(); assertNotNull(services); assertTrue(services.size() > 3); }