@Test
public void validate_noType_shouldThrow() throws Exception {

  ToBeSignedJwt token = new ToBeSignedJwt.Builder().setAlgorithm("HS256").build();
  JwtValidator validator = new JwtValidator.Builder().setType("JWT").build();
  assertThrows(JwtInvalidException.class, () -> validator.validate("HS256", token));
}