@Test(expected = InvalidTokenException.class)
public void invalidAlgorithmHeader() throws Exception {

    String header = b64e("{\"typ\": \"JWT\", \"alg\": \"rot13\"}");
    this.verifier.verify(String.format("%s.payload.signature", header));
}