Vary implements Serializable { public boolean isEmpty() { return varyHeaders.isEmpty(); } Vary();  Vary(final Map<String, String> headers);  Vary(Headers headers); int size(); boolean isEmpty(); boolean matches(final HTTPRequest request); @Override String toString(); Map<String, String> getVaryHeaders(); static Vary parse(String value); boolean equals(final Object o); int hashCode(); static final Vary ALL; }
@Test public void testIsEmpty() { Vary vary = new Vary(); assertTrue("Header names added", vary.isEmpty()); vary = new Vary(new HashMap<String, String>()); assertTrue("Header names added", vary.isEmpty()); }