QuotaThresholdChange { public boolean isAfter(Instant instant) { return this.instant.isAfter(instant); } QuotaThresholdChange(QuotaThreshold quotaThreshold, Instant instant); boolean isAfter(Instant instant); QuotaThreshold getQuotaThreshold(); Instant getInstant(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }
@Test void isAfterShouldReturnTrueWhenRecent() { QuotaThresholdChange change = new QuotaThresholdChange(_75, TWO_HOURS_AGO); assertThat(change.isAfter(THREE_HOURS_AGO)).isTrue(); }
@Test void isAfterShouldReturnFalseWhenOld() { QuotaThresholdChange change = new QuotaThresholdChange(_75, TWO_HOURS_AGO); assertThat(change.isAfter(ONE_HOUR_AGO)).isFalse(); }
@Test void isAfterShouldReturnFalseWhenSameInstant() { QuotaThresholdChange change = new QuotaThresholdChange(_75, TWO_HOURS_AGO); assertThat(change.isAfter(TWO_HOURS_AGO)).isFalse(); }