@Test
  public void accountNameMismatchTest() throws Exception {
    accountService = new InMemAccountServiceFactory(true, false).getAccountService();
    accountAndContainerInjector = new AccountAndContainerInjector(accountService, frontendMetrics, frontendConfig);
    frontendRestRequestService = getFrontendRestRequestService();
    frontendRestRequestService.setupResponseHandler(responseHandler);
    frontendRestRequestService.start();
    postBlobAndVerifyWithAccountAndContainer(refAccount.getName(), refContainer.getName(), "serviceId",
        !refContainer.isCacheable(), null, null, RestServiceErrorCode.InternalServerError);
  }
Tests a corner case when {@link Account} inquired from {@link AccountService} has a name that does not match the
target account name set by the request.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/FrontendRestRequestServiceTest.java