AttributedQNameType aqt = (AttributedQNameType) obj;
assertEquals(portTypeName1, aqt.getValue());
}
public void testSetMetaData() throws Exception {
EndpointReferenceType ref = new EndpointReferenceType();
List<Source> metadata = new ArrayList<Source>();
//Read a Schema File
InputStream isXsd = getClass().getResourceAsStream("resources/addressing.xsd");
StreamSource ssXsd = new StreamSource(isXsd);
metadata.add(ssXsd);
//Read a WSDL File
InputStream isWSDL = getClass().getResourceAsStream("resources/hello_world.wsdl");
StreamSource ssWSDL = new StreamSource(isWSDL);
metadata.add(ssWSDL);
EndpointReferenceUtils.setMetadata(ref, metadata);
assertNotNull("MetaData should not be empty", ref.getMetadata());
List<Object> anyList = ref.getMetadata().getAny();
assertNotNull("AnyList in MetaData should not be empty", anyList);
assertEquals(2, anyList.size());
WSDLManager manager = new TestWSDLManager();
assertNotNull("Defintion element should be present",