assertNull(caller.result);
}
/** Test onUnhandledError() for HTTP error (not FORBIDDEN or UNAUTHORIZED). */
@Test public void testOnUnhandledError2() {
Throwable exception = new StatusCodeException(HttpStatusCode.INTERNAL_SERVER_ERROR.getValue(), "whatever");
Caller caller = new Caller();
caller.onUnhandledError(exception);
assertEquals("generateGeneralRpcErrorWithStatus", caller.error.getMessage());
assertEquals(HttpStatusCode.INTERNAL_SERVER_ERROR, caller.statusCode);