### Question:
FrontendRestRequestServiceFactory implements RestRequestServiceFactory { @Override public RestRequestService getRestRequestService() { try { IdSigningService idSigningService = Utils.<IdSigningServiceFactory>getObj(frontendConfig.idSigningServiceFactory, verifiableProperties, clusterMap.getMetricRegistry()).getIdSigningService(); IdConverterFactory idConverterFactory = Utils.getObj(frontendConfig.idConverterFactory, verifiableProperties, clusterMap.getMetricRegistry(), idSigningService); UrlSigningService urlSigningService = Utils.<UrlSigningServiceFactory>getObj(frontendConfig.urlSigningServiceFactory, verifiableProperties, clusterMap.getMetricRegistry()).getUrlSigningService(); AccountAndContainerInjector accountAndContainerInjector = new AccountAndContainerInjector(accountService, frontendMetrics, frontendConfig); SecurityServiceFactory securityServiceFactory = Utils.getObj(frontendConfig.securityServiceFactory, verifiableProperties, clusterMap, accountService, urlSigningService, idSigningService, accountAndContainerInjector); return new FrontendRestRequestService(frontendConfig, frontendMetrics, router, clusterMap, idConverterFactory, securityServiceFactory, urlSigningService, idSigningService, accountService, accountAndContainerInjector, clusterMapConfig.clusterMapDatacenterName, clusterMapConfig.clusterMapHostName, clusterMapConfig.clusterMapClusterName); } catch (Exception e) { throw new IllegalStateException("Could not instantiate FrontendRestRequestService", e); } } FrontendRestRequestServiceFactory(VerifiableProperties verifiableProperties, ClusterMap clusterMap,
      Router router, AccountService accountService); @Override RestRequestService getRestRequestService();  }### Answer:
@Test public void getFrontendRestRequestServiceTest() throws Exception { JSONObject jsonObject = new JSONObject().put("POST", "http: Properties properties = new Properties(); CommonTestUtils.populateRequiredRouterProps(properties); properties.setProperty(FrontendConfig.URL_SIGNER_ENDPOINTS, jsonObject.toString()); properties.setProperty("clustermap.cluster.name", "Cluster-Name"); properties.setProperty("clustermap.datacenter.name", "Datacenter-Name"); properties.setProperty("clustermap.host.name", "localhost"); VerifiableProperties verifiableProperties = new VerifiableProperties(properties); FrontendRestRequestServiceFactory frontendRestRequestServiceFactory = new FrontendRestRequestServiceFactory(verifiableProperties, new MockClusterMap(), new InMemoryRouter(verifiableProperties, new MockClusterMap()), new InMemAccountService(false, true)); RestRequestService ambryRestRequestService = frontendRestRequestServiceFactory.getRestRequestService(); assertNotNull("No RestRequestService returned", ambryRestRequestService); assertEquals("Did not receive an FrontendRestRequestService instance", FrontendRestRequestService.class.getCanonicalName(), ambryRestRequestService.getClass().getCanonicalName()); }