### Question:
PackageUtils { public static String getNamespace(String packageName) { if (packageName == null || packageName.isEmpty()) { return null; } final List<String> parts = Arrays.asList(packageName.split("\\.")); Collections.reverse(parts); return "http: } 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 testGetNamespace() throws Exception { final String packageName = PackageUtils.getNamespace(getClass().getPackage().getName()); assertEquals("http: }