updateAddressPort(factory, PORT);
NumberService numService = new NumberService();
ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);
W3CEndpointReference numberTwoRef = factory.create("20");
assertNotNull("reference", numberTwoRef);
Number num = (Number)serviceImpl.getPort(numberTwoRef, Number.class);
assertTrue("20 is even", num.isEven().isEven());
ClientProxy.getClient(num).getConduit().close();
W3CEndpointReference numberTwentyThreeRef = factory.create("23");
num = (Number)serviceImpl.getPort(numberTwentyThreeRef, Number.class);
assertTrue("23 is not even", !num.isEven().isEven());
ClientProxy.getClient(num).getConduit().close();
ClientProxy.getClient(factory).getConduit().close();