@Test
public void shouldCleanUpOldValidationRunDontDeleteLastSuccessful() {

    final InstantWithoutNanos lastMonth = InstantWithoutNanos.now().minus(Duration.ofDays(30));
    CertificateTreeValidationRun oldValidationRun = new CertificateTreeValidationRun(testTARef1);
    oldValidationRun.setCreatedAt(lastMonth);
    oldValidationRun.setCompletedAt(lastMonth);
    oldValidationRun.setSucceeded();
    wtx0(tx -> getValidationRuns().add(tx, oldValidationRun));
    AtomicInteger oldCount = subject.cleanupValidationRuns().getLeft();
    assertThat(oldCount.get()).isEqualTo(0);
}