@Test(dataProvider = "getCacheControlData")
public void getCacheControl(MultivaluedMap<String, String> headers, String cacheControl) {

    CacheRequestContext requestContext = new CacheRequestContext("GET", URI.create("http://host"), headers, "abc");
    assertEquals(requestContext.getCacheControl(), RequestCacheControl.valueOf(cacheControl));
}