@Test
public void wrapsNullPointerException() {

    final Function<String, JsonValue> underTest = JsonValueParser.fromString();
    //noinspection ConfusingArgumentToVarargsMethod
    assertThatExceptionOfType(JsonParseException.class)
            .isThrownBy(() -> underTest.apply(null))
            .withMessage("Failed to parse JSON string '%s'!", null)
            .withCauseExactlyInstanceOf(java.lang.NullPointerException.class);
}