Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
if (transportClass!=null) {
Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
UDDISecurityPortType securityService = transport.getUDDISecurityService();
GetAuthToken getAuthToken = new GetAuthToken();
getAuthToken.setUserID("root");
getAuthToken.setCred("");
AuthToken authToken = securityService.getAuthToken(getAuthToken);
System.out.println(authToken.getAuthInfo());
Assert.assertNotNull(authToken);
} else {
Assert.fail();