ClassNameModel { public String getPackage() { return className.contains(".") ? className.substring(0, className.lastIndexOf(".")) : ""; } ClassNameModel(String className); String getClassName(); TypeName getTypeName(); String getPackage(); String getSimpleName(); String normalized(); @Override int hashCode(); @Override boolean equals(Object o);  }
@Test public void getPackage() { assertEquals(IsApplication.class.getPackage() .getName(), this.classNameModel.getPackage()); }