SortedTagList implements TagList { @Override public Tag getTag(String key) { return tagSortedMap.get(key); } 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 testGetTag() throws Exception { assertTrue(testListFromCollection.getTag("a").equals(A)); assertTrue(testListFromStrings.getTag("b").equals(B)); assertTrue(testListFromTags.getTag("c").equals(C)); }