static void verifyRepairRequestRecordInDb(MysqlRepairRequestsDb db, BlobId blobId, RepairRequestRecord expectedRecord)
      throws Exception {
    List<RepairRequestRecord> records = db.getRepairRequestsForPartition(blobId.getPartition().getId());
    if (expectedRecord == null) {
      assertEquals(records.size(), 0);
    } else {
      assertEquals(records.size(), 1);
      RepairRequestRecord record = records.get(0);
      assertEquals(expectedRecord.getBlobId(), record.getBlobId());
      assertEquals(expectedRecord.getPartitionId(), record.getPartitionId());
      assertEquals(expectedRecord.getSourceHostName(), record.getSourceHostName());
      assertEquals(expectedRecord.getSourceHostPort(), record.getSourceHostPort());
      assertEquals(expectedRecord.getOperationType(), record.getOperationType());
      // cannot verify the operationTime
      assertEquals(expectedRecord.getLifeVersion(), record.getLifeVersion());
      assertEquals(expectedRecord.getExpirationTimeMs(), record.getExpirationTimeMs());
    }
  }
Verify the db has one expected RepairRequestRecord
@param db the RepairRequests DB
@param blobId the blob id
@param expectedRecord expected RepairRequestRecord
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/NonBlockingRouterTest.java