private void testErrorPrecedence(ServerErrorCode[] serverErrorCodesInOrder, RouterErrorCode expectedErrorCode)
      throws Exception {
    int i = 0;
    for (MockServer server : mockServerLayout.getMockServers()) {
      server.setServerErrorForAllRequests(serverErrorCodesInOrder[i++]);
    }
    assertOperationFailure(expectedErrorCode);
  }
Help test error precedence.
@param serverErrorCodesInOrder the list of error codes to set the mock servers with.
@param expectedErrorCode the expected router error code for the operation.
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/GetBlobInfoOperationTest.java