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

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