ToBeSignedJwt { Instant getNotBefore() { return getInstant(JwtNames.CLAIM_NOT_BEFORE); } private  ToBeSignedJwt(Builder builder);   }
@Test public void noNotBefore_success() throws Exception { ToBeSignedJwt token = new ToBeSignedJwt.Builder().build(); assertThat(token.getNotBefore()).isNull(); }
@Test public void setNotBefore_success() throws Exception { Instant instant = Instant.now(); ToBeSignedJwt token = new ToBeSignedJwt.Builder().setNotBefore(instant).build(); assertThat(token.getNotBefore().getEpochSecond()).isEqualTo(instant.getEpochSecond()); }