// use values >= 30 to create JMS eprs - see NumberFactoryImpl.create
// verify it is JMS, 999 for JMS will throw a fault
EndpointReferenceType ref = factory.create("999");
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().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());
}