private void supc(WSIFService service, String portName) throws Exception {
SubInout stub = (SubInout) service.getStub(portName, SubInout.class);
stub.addEntry(name1, addr1);
Mutablestring msName1 = new Mutablestring(name1);
Address resp1 = stub.getAddressFromName(msName1);
assertTrue(new AddressUtility(addr1).equals(resp1));
boolean caught = false;
try {
stub.dubiousMethod();
} catch (WSIFException e) {
caught = true;
}
assertTrue(caught);
stub.addEntry(name2, new SubAddress(addr2));
Mutablestring msName2 = new Mutablestring(name2);
Address resp2 = stub.getAddressFromName(msName2);
assertTrue(new AddressUtility(addr2).equals(resp2));
}