ToBeSignedJwt { Instant getIssuedAt() { return getInstant(JwtNames.CLAIM_ISSUED_AT); } private  ToBeSignedJwt(Builder builder);   }
@Test public void noIssuedAt_success() throws Exception { ToBeSignedJwt token = new ToBeSignedJwt.Builder().build(); assertThat(token.getIssuedAt()).isNull(); }
@Test public void setIssuedAt_success() throws Exception { Instant instant = Instant.now(); ToBeSignedJwt token = new ToBeSignedJwt.Builder().setIssuedAt(instant).build(); assertThat(token.getIssuedAt().getEpochSecond()).isEqualTo(instant.getEpochSecond()); }