### Question:
Utils { public static RegistryService getRegistryService() { return registryService; }  static void setRegistryService(RegistryService service); static RegistryService getRegistryService(); static WaitBeforeShutdownObserver[] getWaitBeforeShutdownObservers(); static void setWaitBeforeShutdownObserver(WaitBeforeShutdownObserver service); static void clearWaitBeforeShutdownObserver(); static Registry getRegistry(); static String getDefaultEventingServiceURL(); static void setDefaultEventingServiceURL(String defaultEventingServiceURL); static String getRemoteTopicHeaderName(); static void setRemoteTopicHeaderName(String remoteTopicHeaderName); static String getRemoteTopicHeaderNS(); static void setRemoteTopicHeaderNS(String remoteTopicHeaderNS); static String getRemoteSubscriptionStoreContext(); static void setRemoteSubscriptionStoreContext(String remoteSubscriptionStoreContext); static boolean isIndexingConfigAvailable();  }### Answer:
@Test public void testGetRegistryService() throws Exception { RegistryService service = Mockito.mock(RegistryService.class); Utils.setRegistryService(service); assertEquals(service, Utils.getRegistryService()); }