@Test
public void mapJsonNullLiteralWithIntFieldDefinition() {

    final Class<Integer> valueType = Integer.class;
    final JsonValue nullLiteral = JsonFactory.nullLiteral();
    final JavaValueFieldDefinition<Integer> underTest =
            JavaValueFieldDefinition.newInstance(KNOWN_JSON_POINTER, valueType, JsonValue::isNumber,
                    JsonValue::asInt);
    assertThat(underTest.mapValue(nullLiteral)).isNull();
}