SortedTagList implements TagList { @Override public int size() { return size; } private  SortedTagList(Builder builder); @Override Tag getTag(String key); String getValue(String key); @Override boolean containsKey(String key); @Override boolean isEmpty(); @Override int size(); @Override Iterator<Tag> iterator(); @Override Map<String, String> asMap(); static Builder builder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final SortedTagList EMPTY; }
@Test public void testSize() throws Exception { assertTrue(SortedTagList.EMPTY.isEmpty()); assertTrue(!testListFromCollection.isEmpty()); assertTrue(!testListFromStrings.isEmpty()); assertTrue(!testListFromTags.isEmpty()); }