private void doIdConverterExceptionTest(FrontendTestIdConverterFactory converterFactory, String expectedExceptionMsg)
      throws InstantiationException, JSONException, RestServiceException {
    router = new InMemoryRouter(verifiableProperties, clusterMap, converterFactory);
    frontendRestRequestService =
        new FrontendRestRequestService(frontendConfig, frontendMetrics, router, clusterMap, converterFactory,
            securityServiceFactory, urlSigningService, idSigningService, router.getIdConverter().getNamedBlobDb(),
            accountService, accountAndContainerInjector, datacenterName, hostname, clusterName, accountStatsStore,
            QUOTA_MANAGER);
    frontendRestRequestService.setupResponseHandler(responseHandler);
    frontendRestRequestService.start();
    RestMethod[] restMethods = {RestMethod.POST, RestMethod.GET, RestMethod.DELETE, RestMethod.HEAD};
    doExternalServicesBadInputTest(restMethods, expectedExceptionMsg, false);
  }
Does the exception pipelining test for {@link IdConverter}.
@param converterFactory the {@link IdConverterFactory} to use to while creating {@link FrontendRestRequestService}.
@param expectedExceptionMsg the expected exception message.
@throws InstantiationException
@throws JSONException
ambry-frontend/src/test/java/com/github/ambry/frontend/FrontendRestRequestServiceTest.java