public void testInvalidAddAndGetPort() {
// Should not be able to do a getPort on one that was added with addPort
QName dispatchPortQN = new QName(VALID_NAMESPACE, "dispatchPort");
service.addPort(dispatchPortQN, null, null);
try {
EchoPort echoPort = service.getPort(dispatchPortQN, EchoPort.class);
fail("Should have thrown a WebServiceException");
}
catch (WebServiceException e) {
// Expected path
}