DSpaceServiceManager implements ServiceManagerSystem { @Override public void shutdown() { unregisterActivators(); for (ServiceManagerSystem sms : serviceManagers) { try { sms.shutdown(); } catch (Exception e) { log.error("Failure shutting down service manager ("+sms+"): " + e.getMessage(), e); } } this.running = false; this.serviceManagers.clear(); this.primaryServiceManager = null; log.info("Shutdown DSpace core service manager"); } 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 testShutdown() { dsm.startup(); dsm.shutdown(); }