### Question:
ServiceUtils { public static String makeNamespaceFromClassName(String className, String protocol) { int index = className.lastIndexOf('.'); if (index == -1) { return protocol + ": } String packageName = className.substring(0, index); StringTokenizer st = new StringTokenizer(packageName, "."); String[] words = new String[st.countTokens()]; for (int i = words.length - 1; i >= 0; --i) { words[i] = st.nextToken(); } return protocol + ": } private  ServiceUtils(); static boolean isSchemaValidationEnabled(SchemaValidationType type, Message message); static SchemaValidationType getSchemaValidationType(Message message); static SchemaValidationType getSchemaValidationType(Object obj); static String makeServiceNameFromClassName(Class<?> clazz); static QName makeQualifiedNameFromClass(Class<?> clazz); static String getMethodName(Method m); static String makeNamespaceFromClassName(String className, String protocol); static String makePackageName(String namespace);  }### Answer:
@Test public void testmakeNamespaceFromClassName() throws Exception { String tns = ServiceUtils.makeNamespaceFromClassName("com.example.ws.Test", "http"); assertEquals("http: }