JavaServiceDesc desc = new JavaServiceDesc();
desc.setTypeMapping(DefaultTypeMappingImpl.getSingletonDelegate());
desc.loadServiceDescByIntrospection(ServiceClass.class);
List operations = desc.getOperations();
assertTrue(operations != null);
assertEquals("invalid number of registered operations",
2, operations.size());
OperationDesc operation;
List faults;
operation = (OperationDesc)operations.get(0);
assertEquals("doIt1", operation.getName());
faults = operation.getFaults();
assertTrue(faults != null);
assertEquals("invalid number of registered faults",
2, faults.size());
operation = (OperationDesc)operations.get(1);
assertEquals("doIt2", operation.getName());
faults = operation.getFaults();
assertTrue(faults != null);
assertEquals("invalid number of registered faults",
2, faults.size());