String s = NumberService.WSDL_LOCATION.toString();
EmbeddedJMSBrokerLauncher.updateWsdlExtensors(BusFactory.getDefaultBus(), s);
NumberService numService = new NumberService();
assertNotNull("reference", ref);
ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);
Number num = (Number)serviceImpl.getPort(ref, Number.class);
try {
num.isEven().isEven();
fail("there should be a fault on val 999");
} catch (Exception expected) {
assertTrue("match on exception message " + expected.getMessage(),
expected.getMessage().indexOf("999") != -1);
}
ref = factory.create("37");
assertNotNull("reference", ref);
num = (Number)serviceImpl.getPort(ref, Number.class);
assertTrue("37 is not even", !num.isEven().isEven());
}