### Question:
SeLionElementSet extends LinkedHashSet<SeLionElement> { public boolean isExactMatch(String element) { if (!StringUtils.isEmpty(element)) { Optional<SeLionElement> first = stream().filter(eachElement -> eachElement.getElementClass().equals(element)).findFirst(); return first.isPresent(); } return false; } SeLionElementSet();  SeLionElementSet(SeLionElement[] elements);  SeLionElementSet(Collection<SeLionElement> elements); SeLionElement findMatch(String element); boolean isValid(String element); boolean isValidUIElement(String element); boolean isExactMatch(String element); abstract boolean add(String element); boolean add(SeLionElement element);  }### Answer:
@Test public void testIsExactMatch() { SeLionElement element = new SeLionElement("com.foo.Bar"); SeLionElementSet elementSet = new DummySeLionElementSet(new SeLionElement[] { element }); assertTrue(elementSet.isExactMatch("Bar")); assertFalse(elementSet.isExactMatch("Baz")); }