@Test
public void validate_noAlgorithm_shouldThrow() throws Exception {

  String algo = "HS256";
  JwtValidator validator = new JwtValidator.Builder().build();
  ToBeSignedJwt unverified = new ToBeSignedJwt.Builder().build();
  assertThrows(IllegalStateException.class, () -> validator.validate(algo, unverified));
}