private void assertCacheHeaders(String[] values, List<String> cacheheaders) {
        assertNotNull(values, "No headers to test for (was null)");
        assertTrue(values.length > 0, "No headers to test for (no elements in array)");
        assertNotNull(cacheheaders, "No cache headers set in response");
        assertEquals(values.length, cacheheaders.size());
        for (String header : values) {
            assertTrue(cacheheaders.contains(header), "Cache header does not contain header '" + header + "'");
        }
    }
Assert that cache header ListMap exactly match given array of expected cache headers
@param values - Array of cache control headers expected, e.g. {"max-age=120", "stale-while-revalidate=3600"}
@param cacheheaders - The "Cache-Control" headers from the response ListMap
container-search/src/test/java/com/yahoo/search/searchers/test/CacheControlSearcherTestCase.java