### Question:
Tags implements Serializable { public boolean containsAny (Tags tags) { for (String s : tags.ts) { if (ts.contains(s)) return true; } return tags.size() == 0; } Tags();  Tags(String tags);  Tags(String... tags); void setTags(String tags); boolean add(String t); boolean remove(String t); boolean contains(String t); Iterator<String> iterator(); int size(); boolean containsAll(Tags tags); boolean containsAny(Tags tags); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testContainsAny() { Tags ts = new Tags("abc,def,ghi"); assertTrue(ts.containsAny(new Tags("abc,def"))); assertTrue(ts.containsAny(new Tags("abc,jkl"))); assertTrue(ts.containsAny(new Tags(""))); assertTrue(new Tags().containsAny(new Tags())); assertFalse(ts.containsAny(new Tags("jkl,mno"))); }