@Test
  public void routerErrorCodeResolutionFirstSetTest() throws Exception {
    LinkedHashMap<ServerErrorCode, RouterErrorCode> codesToSetAndTest = new LinkedHashMap<>();
    // test 4 codes
    codesToSetAndTest.put(ServerErrorCode.BlobAuthorizationFailure, RouterErrorCode.BlobAuthorizationFailure);
    codesToSetAndTest.put(ServerErrorCode.BlobExpired, RouterErrorCode.BlobExpired);
    codesToSetAndTest.put(ServerErrorCode.DiskUnavailable, RouterErrorCode.AmbryUnavailable);
    doRouterErrorCodeResolutionTest(codesToSetAndTest);
  }
Tests to ensure that {@link RouterErrorCode}s are properly resolved based on precedence
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/DeleteManagerTest.java