DSpaceServiceManager implements ServiceManagerSystem { public List<String> getServicesNames() { checkRunning(); List<String> names = new ArrayList<String>(); for (ServiceManagerSystem sms : serviceManagers) { try { names.addAll( sms.getServicesNames() ); } catch (Exception e) { } } Collections.sort(names); return names; } 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 testGetServicesNames() { dsm.startup(); List<String> names = dsm.getServicesNames(); assertNotNull(names); assertTrue(names.size() >= 3); }