Service service = (Service) services.iterator().next();
Collection operations = service.getServiceInfo().getOperations();
assertEquals(1, operations.size());
Iterator itr = operations.iterator();
OperationInfo opInfo = (OperationInfo) itr.next();
assertEquals("echo", opInfo.getName());
assertEquals("urn:Echo:schema", opInfo.getInputMessage().getName().getNamespaceURI());
assertEquals("urn:Echo:schema", opInfo.getOutputMessage().getName().getNamespaceURI());
// Check the input message
MessageInfo message = opInfo.getInputMessage();
Collection parts = message.getMessageParts();
assertEquals(1, parts.size());
MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
assertEquals(new QName("urn:Echo:schema", "text"), part.getName());
// and now the output...
message = opInfo.getOutputMessage();
parts = message.getMessageParts();
assertEquals(1, parts.size());
assertTrue(service.getServiceInfo().isWrapped());