private void verifyAccountAndContainerHeaders(MockRestResponseChannel restResponseChannel, Account expectedAccount,
      Container expectedContainer) {
    if (expectedAccount.getId() != Account.UNKNOWN_ACCOUNT_ID) {
      Assert.assertEquals("Account name not as expected", expectedAccount.getName(),
          restResponseChannel.getHeader(RestUtils.Headers.TARGET_ACCOUNT_NAME));
      Assert.assertEquals("Container name not as expected", expectedContainer.getName(),
          restResponseChannel.getHeader(RestUtils.Headers.TARGET_CONTAINER_NAME));
    }
    assertEquals(RestUtils.Headers.PRIVATE + " does not match", !expectedContainer.isCacheable(),
        Boolean.valueOf(restResponseChannel.getHeader(RestUtils.Headers.PRIVATE)));
  }
Verify that the account and container headers in the response are correct.
@param restResponseChannel the {@link MockRestResponseChannel} to get headers from.
@param expectedAccount the expected {@link Account}.
@param expectedContainer the expected {@link Container}.
ambry-frontend/src/test/java/com/github/ambry/frontend/FrontendRestRequestServiceTest.java