@Test
public void getAlgorithm_success() throws Exception {

  JSONObject header = new JSONObject();
  header.put(JwtNames.HEADER_ALGORITHM, "HS256");
  Jwt token = new Jwt(header, new JSONObject(), Clock.systemUTC(), Duration.ZERO);
  assertThat(token.getAlgorithm()).isEqualTo("HS256");
}