ToBeSignedJwt { Instant getExpiration() { return getInstant(JwtNames.CLAIM_EXPIRATION); } private  ToBeSignedJwt(Builder builder);   }
@Test public void noExpiration_success() throws Exception { ToBeSignedJwt token = new ToBeSignedJwt.Builder().build(); assertThat(token.getExpiration()).isNull(); }
@Test public void setExpiration_success() throws Exception { Instant instant = Instant.now(); ToBeSignedJwt token = new ToBeSignedJwt.Builder().setExpiration(instant).build(); assertThat(token.getExpiration().getEpochSecond()).isEqualTo(instant.getEpochSecond()); }