### Question:
JavaInterface implements JavaAnnotatable { public void setFullClassName(String fullName) { int index = fullName.lastIndexOf('.'); setPackageName(fullName.substring(0, index)); setName(fullName.substring(index + 1, fullName.length())); } JavaInterface();  JavaInterface(JavaModel m); void setWebServiceName(String wsn); String getWebServiceName(); void setSOAPStyle(SOAPBinding.Style s); SOAPBinding.Style getSOAPStyle(); void setSOAPUse(SOAPBinding.Use u); SOAPBinding.Use getSOAPUse(); void setSOAPParameterStyle(SOAPBinding.ParameterStyle p); SOAPBinding.ParameterStyle getSOAPParameterStyle(); JavaModel getJavaModel(); void setName(String n); String getName(); void setLocation(String l); String getLocation(); List<String> getSuperInterfaces(); List<JavaMethod> getMethods(); boolean hasMethod(JavaMethod method); int indexOf(JavaMethod method); int removeMethod(JavaMethod method); void replaceMethod(JavaMethod method); void addMethod(JavaMethod method); void addSuperInterface(String s); String getPackageName(); void setPackageName(String pn); String getNamespace(); void setNamespace(String ns); void setPackageJavaDoc(String doc); String getPackageJavaDoc(); void setClassJavaDoc(String doc); String getClassJavaDoc(); void addAnnotation(JAnnotation annotation); List<JAnnotation> getAnnotations(); void addImport(String i); void addImports(Collection<String> ii); Iterator<String> getImports(); void setJavaModel(JavaModel jm); void annotate(Annotator annotator); Element getHandlerChains(); void setHandlerChains(Element elem); void setFullClassName(String fullName); String getFullClassName(); String toString();  }### Answer:
@Test public void testSetFullClassName() throws Exception { String fullName = "org.apache.cxf.tools.common.model.JavaInterface"; JavaInterface intf = new JavaInterface(); intf.setFullClassName(fullName); assertEquals("org.apache.cxf.tools.common.model", intf.getPackageName()); assertEquals("JavaInterface", intf.getName()); }