SortedTagList implements TagList { @Override public boolean containsKey(String key) { return tagSortedMap.containsKey(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 testContainsKey() throws Exception { assertTrue(testListFromCollection.containsKey("b")); assertTrue(testListFromStrings.containsKey("c")); assertTrue(testListFromTags.containsKey("a")); }