@Test
public void tryToParseTokenWithMissingSignature() {

    final String header = "{\"header\":\"value\"}";
    final String payload = "{\"payload\":\"foo\"}";
    final String authorizationHeader = "Bearer " + base64(header) + "." + base64(payload);
    assertThatExceptionOfType(JwtInvalidException.class)
            .isThrownBy(() -> ImmutableJsonWebToken.fromAuthorization(authorizationHeader));
}