@Test public void should_be_expired_when_after_trialPeriodEndsAt() { CustomerData cd = customerData.toBuilder().trialPeriodEndsAt(now.minusSeconds(1)).build(); assertThat(cd.isTrialPeriodExpired(now), is(true)); }
public boolean isTrialPeriodExpired(Instant now) { return trialPeriodEndsAt != null && trialPeriodEndsAt.isBefore(now); }
CustomerData { public boolean isTrialPeriodExpired(Instant now) { return trialPeriodEndsAt != null && trialPeriodEndsAt.isBefore(now); } }
CustomerData { public boolean isTrialPeriodExpired(Instant now) { return trialPeriodEndsAt != null && trialPeriodEndsAt.isBefore(now); }  }
CustomerData { public boolean isTrialPeriodExpired(Instant now) { return trialPeriodEndsAt != null && trialPeriodEndsAt.isBefore(now); }  boolean isTrialPeriodExpired(Instant now); String getDisplayName(); static CustomerData sample(); }
CustomerData { public boolean isTrialPeriodExpired(Instant now) { return trialPeriodEndsAt != null && trialPeriodEndsAt.isBefore(now); }  boolean isTrialPeriodExpired(Instant now); String getDisplayName(); static CustomerData sample();  }