@Test
public void getExpiration_success() throws Exception {

  JSONObject payload = new JSONObject();
  Instant instant = Instant.now();
  payload.put(JwtNames.CLAIM_EXPIRATION, instant.getEpochSecond());
  Jwt token = new Jwt(new JSONObject(), payload, Clock.systemUTC(), Duration.ZERO);
  assertThat(token.getExpiration().getEpochSecond()).isEqualTo(instant.getEpochSecond());
}