public static void validateRequestHeadersAndUpdateResourceContext(final Map<String, String> headers,
                                                                    final Set<String> customMimeTypesSupported,
                                                                    ServerResourceContext resourceContext)
  {
    validateRequestHeadersAndUpdateResourceContext(headers, customMimeTypesSupported, resourceContext,
        new RequestContext());
  }
@Test()
  public void testValidateRequestHeadersWithValidAcceptHeaderAndMatch() throws Exception
  {
    Map<String, String> headers = new HashMap<>();
    headers.put("Accept", "application/json");
    ServerResourceContext resourceContext = new ResourceContextImpl();
    RestUtils.validateRequestHeadersAndUpdateResourceContext(headers, Collections.emptySet(), resourceContext);
    Assert.assertEquals(resourceContext.getResponseMimeType(), "application/json");
  }