getProxy().throwApplicationException();
fail("Expected UserException");
}
catch (UserException_Exception e)
{
UserException ue = e.getFaultInfo();
assertEquals("SOME VALIDATION ERROR", ue.getMessage());
assertEquals("validation", ue.getErrorCategory());
assertEquals(123, ue.getErrorCode());
}
}