private void verifyTrackingHeaders(HttpResponse response, boolean shouldTrackingHeadersExist) {
    for (String header : RestUtils.TrackingHeaders.TRACKING_HEADERS) {
      if (shouldTrackingHeadersExist) {
        assertEquals("Unexpected tracking header", header, response.headers().get(header));
      } else {
        assertFalse("Response should not contain any tracking headers", response.headers().contains(header));
      }
    }
  }
Verify tracking headers exist in the response when they are suppose to be and vice versa.
@param response the {@link HttpResponse} that will have its headers checked.
@param shouldTrackingHeadersExist the boolean indicating are tracking headers expected.
ambry-rest/src/test/java/com/github/ambry/rest/NettyResponseChannelTest.java