@Test
  public void testOrigDcSuccess() throws Exception {
    doPut();

    // Default all replicas to return not found.
    int serverCount = mockServerLayout.getMockServers().size();
    List<ServerErrorCode> serverErrorCodes = Collections.nCopies(serverCount, ServerErrorCode.BlobNotFound);
    setServerErrorCodes(serverErrorCodes, mockServerLayout);

    // Set 1 success and rest not found in originating dc
    List<MockServer> serversInLocalDc = new ArrayList<>();
    mockServerLayout.getMockServers().forEach(mockServer -> {
      if (mockServer.getDataCenter().equals(localDcName)) {
        serversInLocalDc.add(mockServer);
      }
    });
    MockPartitionId partitionId = (MockPartitionId) blobId.getPartition();
    ReplicaId boostrapReplica = partitionId.replicaIds.stream()
        .filter(replicaId -> replicaId.getDataNodeId().getDatacenterName().equals(localDcName))
        .filter(replicaId -> replicaId.getDataNodeId().getHostname().equals(serversInLocalDc.get(0).getHostName()))
        .findFirst()
        .get();
    partitionId.setReplicaState(boostrapReplica, ReplicaState.BOOTSTRAP);
    serversInLocalDc.get(0).setServerErrorForAllRequests(ServerErrorCode.BlobNotFound);
    serversInLocalDc.get(1).setServerErrorForAllRequests(ServerErrorCode.BlobNotFound);
    serversInLocalDc.get(2).setServerErrorForAllRequests(ServerErrorCode.NoError);

    getErrorCodeChecker.testAndAssert(null);
  }
Test the case when there is 1 success in originating data center, we should return success.
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/GetBlobOperationTest.java