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

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