Service svc1 = Service.create(svcQN);
assertNotNull(svc1);
ServiceDelegate svcDlg1 = DescriptionTestUtils2.getServiceDelegate(svc1);
assertNotNull(svcDlg1);
ServiceDescription svcDesc1 = svcDlg1.getServiceDescription();
assertNotNull(svcDesc1);
// Set the property to revert the behavior. Note that although we are passing ni
// a particular service, the property is set on the AxisConfig shared by all
// services.
setAxisConfigParameter(svc1, MDQConstants.SHARE_DYNAMIC_PORTS_ACROSS_SERVICES, "true");
QName svcQN2 = new QName(namespaceURI, svcLocalPart + "2");
Service svc2 = Service.create(svcQN2);
assertNotNull(svc2);
ServiceDelegate svcDlg2 = DescriptionTestUtils2.getServiceDelegate(svc2);
assertNotNull(svcDlg2);
ServiceDescription svcDesc2 = svcDlg2.getServiceDescription();
assertNotNull(svcDesc2);
assertNotSame("Service instances should not be the same", svc1, svc2);
assertNotSame("Service delegates should not be the same", svcDlg1, svcDlg2);
assertNotSame("Instance of ServiceDescription should be the same", svcDesc1, svcDesc2);