@Test
public void getType_success() throws Exception {

  JSONObject header = new JSONObject();
  header.put(JwtNames.HEADER_TYPE, "JWT");
  Jwt token = new Jwt(header, new JSONObject(), Clock.systemUTC(), Duration.ZERO);
  assertThat(token.getType()).isEqualTo("JWT");
}