### Question:
SeLionElement { public boolean looksLike(String elementKey) { return !StringUtils.isEmpty(elementKey) && elementKey.endsWith(elementClass); } SeLionElement(String element);  SeLionElement(String element, boolean uiElement);  SeLionElement(String elementPackage, String elementClass, boolean uiElement); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); boolean isUIElement(); String getElementClass(); String getElementPackage(); boolean isExactMatch(String element); boolean looksLike(String elementKey);  }### Answer:
@Test public void testLooksLike() { SeLionElement a = new SeLionElement("com.foo.Bar"); assertTrue(a.looksLike("MyBar")); assertTrue(a.looksLike("com.foo.Bar")); assertTrue(a.looksLike(".Bar")); assertFalse(a.looksLike(null)); assertFalse(a.looksLike(" ")); assertFalse(a.looksLike("mybar")); }