@Test
public void validate_keyId_success() throws Exception {

  ToBeSignedJwt unverified =
      new ToBeSignedJwt.Builder().setAlgorithm("HS256").setKeyId("123").build();
  JwtValidator validator = new JwtValidator.Builder().setKeyId("123").build();
  Jwt token = validator.validate("HS256", unverified);
  assertThat(token.getKeyId()).isEqualTo("123");
}