@Test
  public void testOrigDcUnavailability() throws Exception {
    // Default all replicas to return not found.
    int serverCount = serverLayout.getMockServers().size();
    List<ServerErrorCode> serverErrorCodes = Collections.nCopies(serverCount, ServerErrorCode.BlobNotFound);
    setServerErrorCodes(serverErrorCodes, serverLayout);

    // Set 1 replica to disk unavailable originating dc
    List<MockServer> serversInLocalDc = new ArrayList<>();
    serverLayout.getMockServers().forEach(mockServer -> {
      if (mockServer.getDataCenter().equals(localDc)) {
        serversInLocalDc.add(mockServer);
      }
    });
    serversInLocalDc.get(0).setServerErrorForAllRequests(ServerErrorCode.DiskUnavailable);
    serversInLocalDc.get(1).setServerErrorForAllRequests(ServerErrorCode.BlobNotFound);
    serversInLocalDc.get(2).setServerErrorForAllRequests(ServerErrorCode.BlobNotFound);
    executeOpAndVerify(blobIds, RouterErrorCode.AmbryUnavailable, false, true, true, false, false);
  }
Test the case when some of the replicas in originating DC are unavailable, we should return AmbryUnavailable.
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/TtlUpdateManagerTest.java