public void shouldGetNotBefore() throws Exception {
Date expectedDate = new Date(1477592 * 1000);
Clock clock = mock(Clock.class);
when(clock.getToday()).thenReturn(expectedDate);
String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.mWYSOPoNXstjKbZkKrqgkwPOQWEx3F3gMm6PMcfuJd8";
<BUG>DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
.build(clock)</BUG>
.verify(token);
assertThat(jwt, is(notNullValue()));
assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));

public void shouldGetNotBefore() throws Exception {
Date expectedDate = new Date(1477592 * 1000);
Clock clock = mock(Clock.class);
when(clock.getToday()).thenReturn(expectedDate);
String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.mWYSOPoNXstjKbZkKrqgkwPOQWEx3F3gMm6PMcfuJd8";
JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
DecodedJWT jwt = verification
.build(clock)
.verify(token);
assertThat(jwt, is(notNullValue()));
assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
