@Test
  public void testCleanupBlobGoodCase5() throws Exception {
    Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
    calendar.add(Calendar.DATE, -config.staleDataRetentionDays);
    long staleCutoffTime = calendar.getTimeInMillis();

    Account account = accountService.getAllAccounts().iterator().next();
    Container container = account.getAllContainers().iterator().next();
    String blobId = getBlobId(account, container);
    String blobName = "good/" + "case3" + "/more path segments--";
    NamedBlobRecord record =
        new NamedBlobRecord(account.getName(), container.getName(), blobName, blobId, Utils.Infinite_Time);

    time.setCurrentMilliseconds(staleCutoffTime);
    PutResult putResult = namedBlobDb.put(record, NamedBlobState.IN_PROGRESS, false).get();
    NamedBlobRecord updatedRecord =
        new NamedBlobRecord(record.getAccountName(), record.getContainerName(), record.getBlobName(),
            record.getBlobId(), record.getExpirationTimeMs(), putResult.getInsertedRecord().getVersion());
    namedBlobDb.updateBlobTtlAndStateToReady(updatedRecord).get();

    List<StaleNamedBlob> staleNamedBlobs = namedBlobDb.pullStaleBlobs().get();

    assertEquals("Good blob case 5 pull stale blob result should be empty!", 0, staleNamedBlobs.size());
  }
Test behavior with blob cleanup for good blob case
Case 5, two rows created for the same blobId more than staleDataRetentionDays ago,
one is In Progress, the other is Ready & Largest
ambry-named-mysql/src/integration-test/java/com/github/ambry/named/MySqlNamedBlobDbIntegrationTest.java