### Question:
PackageUtils { public static String parsePackageName(String namespace, String defaultPackageName) { return (defaultPackageName != null && !defaultPackageName.trim().isEmpty()) ? defaultPackageName : getPackageNameByNameSpaceURI(namespace.trim()); } private  PackageUtils(); static String getPackageName(Class<?> clazz); static String getSharedPackageName(List<Class<?>> classes); static String parsePackageName(String namespace, String defaultPackageName); static String getPackageNameByNameSpaceURI(String nameSpaceURI); static String getNamespace(String packageName);  }### Answer:
@Test public void testParsePackageName() throws Exception { assertEquals("com.example.test.passed", PackageUtils.parsePackageName("http: assertEquals("org.apache.cxf.no_body_parts.wsdl", PackageUtils.parsePackageName("urn:org:apache:cxf:no_body_parts/wsdl", "")); }