### Question:
SeLionElementSet extends LinkedHashSet<SeLionElement> { public abstract boolean add(String element); 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 testAdd() { SeLionElement element = new SeLionElement("com.foo.Bar"); SeLionElementSet elementSet = new DummySeLionElementSet(); assertEquals(elementSet.size(), 0); elementSet.add(element); assertEquals(elementSet.size(), 1); elementSet.add(new SeLionElement("foo.bar.Baz")); assertEquals(elementSet.size(), 2); }
@Test public void testAddAll() { SeLionElementSet elementSet = new DummySeLionElementSet(); List<SeLionElement> elements = new ArrayList<>(); elements.add(new SeLionElement("com.foo.Bar")); elements.add(new SeLionElement("foo.bar.Baz")); elementSet.addAll(elements); assertEquals(elementSet.size(), 2); }