@Test(expected = InvalidSignatureException.class)
public void invalidSignature() throws Exception {

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