@Test
public void testErrorCodes() throws Throwable {

    ServiceErrorResponse rsp = ServiceErrorResponse.create(
            new IllegalArgumentException(), Operation.STATUS_CODE_BAD_REQUEST);
    rsp.setErrorCode(123123);
    assertEquals(rsp.getErrorCode(), 123123);
    rsp.setInternalErrorCode(0x81234567);
    assertEquals(rsp.getErrorCode(), 0x81234567);
}