code: private synchronized void checkAssertionErrors() {
      boolean assertsEnabled = false;
      assert assertsEnabled = true; // sets to true if enabled
      if (assertsEnabled) {
        for (Throwable t : exceptions.values()) {
          if (t instanceof AssertionError) {
            throw (AssertionError)t;
          } else if (t instanceof RemoteException &&
              ((RemoteException)t).getClassName().equals(
                  AssertionError.class.getName())) {
            throw new AssertionError(t);
          }
        }
      }
    }
docs: Check if any of the responses came back with an AssertionError.
  If so, it re-throws it, even if there was a quorum of responses.
  This code only runs if assertions are enabled for this class,
  otherwise it should JIT itself away.
  
  This is done since AssertionError indicates programmer confusion
  rather than some kind of expected issue, and thus in the context
  of test cases we'd like to actually fail the test case instead of
  continuing through.