private UndeleteResponse makeUndeleteResponse(UndeleteRequest undeleteRequest, ServerErrorCode undeleteError) {
    if (undeleteError == ServerErrorCode.NoError) {
      undeleteError = errorCodeForBlobs.getOrDefault(undeleteRequest.getBlobId().getID(), ServerErrorCode.NoError);
    }
    if (undeleteError == ServerErrorCode.NoError) {
      undeleteError = updateBlobMap(undeleteRequest);
    }
    if (undeleteError == ServerErrorCode.NoError || undeleteError == ServerErrorCode.BlobAlreadyUndeleted) {
      short lifeVersion = blobs.get(undeleteRequest.getBlobId().getID()).lifeVersion;
      return new UndeleteResponse(undeleteRequest.getCorrelationId(), undeleteRequest.getClientId(), lifeVersion,
          undeleteError);
    } else {
      return new UndeleteResponse(undeleteRequest.getCorrelationId(), undeleteRequest.getClientId(), undeleteError);
    }
  }
Make a {@link UndeleteResponse} for the given {@link UndeleteRequest} for which the given {@link ServerErrorCode} was
encountered.
@param undeleteRequest the {@link UndeleteRequest} for which the response is being constructed.
@param undeleteError the {@link ServerErrorCode} that was encountered.
@return the constructed {@link UndeleteResponse}
ambry-router/src/test/java/com/github/ambry/router/MockServer.java