@Test public void test_is_expired_should_return_true_when_token_expiry_is_in_the_past() { final LocalDateTime now = LocalDateTime.now(ZoneId.of(IST)); final Token token = Token.builder() .expiryDateTime(now.minusSeconds(30)) .build(); assertTrue(token.isExpired(now)); }
public boolean isExpired(LocalDateTime now) { return now.isAfter(expiryDateTime); }
Token { public boolean isExpired(LocalDateTime now) { return now.isAfter(expiryDateTime); } }
Token { public boolean isExpired(LocalDateTime now) { return now.isAfter(expiryDateTime); }  }
Token { public boolean isExpired(LocalDateTime now) { return now.isAfter(expiryDateTime); }  boolean isExpired(LocalDateTime now); }
Token { public boolean isExpired(LocalDateTime now) { return now.isAfter(expiryDateTime); }  boolean isExpired(LocalDateTime now);  }