SOAPBindingModel binding1 = (SOAPBindingModel)compositeService.getBindings().get(0);
assertEquals("soap", binding1.getType());
PortModel port = binding1.getPort();
assertEquals("MyWebService/SOAPPort", port.getPort());
assertEquals(true, port.isSecure());
WSDLModel wsdl1 = binding1.getWSDL();
assertEquals("service.wsdl", wsdl1.getLocation());
assertEquals("foobar", wsdl1.getDescription());
CompositeReferenceModel compositeReference = composite.getReferences().get(0);
assertEquals("SomeOtherService", compositeReference.getName());
assertEquals("SimpleService/AnotherService", compositeReference.getPromote());
SOAPBindingModel binding2 = (SOAPBindingModel)compositeReference.getBindings().get(0);
assertEquals("soap", binding2.getType());
WSDLModel wsdl = binding2.getWSDL();
assertEquals("http://exmample.org:8080/services/SomeOtherService?wsdl", wsdl.getLocation());
ComponentModel component1 = composite.getComponents().get(0);
assertEquals("SimpleService", component1.getName());
ComponentImplementationModel implementation1 = component1.getImplementation();
assertEquals("bean", implementation1.getType());
ComponentServiceModel componentService1 = component1.getServices().get(0);