@Test
  public void itUsesExceptionDefaultValueForServerOverloaded() {
    // pass false for server overloaded, we still expect the exception to be true due to
    // the exception type
    RemoteWithExtrasException ex = new RemoteWithExtrasException(
      ServerOverloadedException.class.getName(), "server is overloaded", false, false);
    IOException result = ex.unwrapRemoteException();

    assertEquals(result.getClass(), ServerOverloadedException.class);
    assertTrue(((ServerOverloadedException) result).isServerOverloaded());
  }
test verifies that we honor the inherent value of an exception for isServerOverloaded. We don't
want a false value passed into RemoteWithExtrasExceptions to override the inherent value of an
exception if it's already true. This could be due to an out of date server not sending the
proto field we expect.
hbase-client/src/test/java/org/apache/hadoop/hbase/ipc/TestRemoteWithExtrasException.java