GetOptions { public List<String> getRanges() { return ranges; }  GetOptions range(long start, long end); GetOptions startAt(long start); GetOptions tail(long length); GetOptions ifModifiedSince(Date ifModifiedSince); Date getIfModifiedSince(); GetOptions ifUnmodifiedSince(Date ifUnmodifiedSince); Date getIfUnmodifiedSince(); GetOptions ifETagMatches(String eTag); String getIfMatch(); GetOptions ifETagDoesntMatch(String eTag); String getIfNoneMatch(); List<String> getRanges(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final GetOptions NONE; }
@Test public void testNoRange() { GetOptions options = new GetOptions(); assertEquals(options.getRanges().size(), 0); }