### Question:
HtmlElementUtils { public static String getClass(String element) { Preconditions.checkNotNull(element,"argument 'element' can not be null"); return element.substring(element.lastIndexOf('.') + 1); }  static String getPackage(String element); static String getClass(String element);  }### Answer:
@Test public void testGetClass() { assertEquals(HtmlElementUtils.getClass("com.foo.Bar"), "Bar"); }
@Test(expectedExceptions = NullPointerException.class) public void testGetClassForNull() { HtmlElementUtils.getClass(null); }