### Question:
StigmaValidator { public boolean isValid(@Nullable final StigmaDetails stigmaDetails) { final Instant now = nowSource.now(); if (stigmaDetails == null) { logger.trace("Invalid stigma - missing."); return false; } if (stigmaDetails.getStatus() != StigmaStatus.ACTIVE) { if (logger.isTraceEnabled()) { logger.trace("Invalid stigma - not active: " + stigmaDetails); } return false; } if (isExpired(stigmaDetails, now)) { if (logger.isTraceEnabled()) { logger.trace(String.format("Invalid stigma - expired: %s. Check time: %s", stigmaDetails, now)); } return false; } logger.trace("Stigma is valid."); return true; } StigmaValidator(final NowSource nowSource, final Duration stigmaLifetime); boolean isValid(@Nullable final StigmaDetails stigmaDetails);  }### Answer:
@Test void should_pass_validation() { final StigmaDetails stigmaDetails = new StigmaDetails(new Stigma("stigma-value"), StigmaStatus.ACTIVE, NOW.minus(STIGMA_LIFETIME)); final boolean result = stigmaValidator.isValid(stigmaDetails); assertThat(result).isTrue(); }