se.getLinkedCause() == null);
}
// Make sure we get the proper ports
try {
Stub one = (Stub) service.getPort(portOne, One.class);
Stub two = (Stub) service.getPort(portTwo, Two.class);
Stub three = (Stub) service.getPort(portThree, Three.class);
assertTrue("getPort(portOne) should be of type One, instead it is " + one.getClass().getName(), one instanceof One);
assertTrue("getPort(portOne) should have address http://localhost:8080/axis/services/portOne, instead it has " + one._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY), "http://localhost:8080/axis/services/portOne".equals(one._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY)));
assertTrue("getPort(portTwo) should be of type Two, instead it is " + two.getClass().getName(), two instanceof Two);
assertTrue("getPort(portTwo) should have address http://localhost:8080/axis/services/portTwo, instead it has " + two._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY), "http://localhost:8080/axis/services/portTwo".equals(two._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY)));
assertTrue("getPort(portThree) should be of type One, instead it is " + three.getClass().getName(), three instanceof One);
assertTrue("getPort(portThree) should have address http://localhost:8080/axis/services/portFour, instead it has " + three._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY), "http://localhost:8080/axis/services/portFour".equals(three._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY)));
}
catch (ServiceException se) {
fail("unexpected failure: " + se);
}
} // testDoublePortService2