@Test
public void mapIntWithIntFieldDefinitionReturnsExpected() {

    final int intValue = 42;
    final JsonValue intJsonValue = JsonFactory.newValue(intValue);
    final JavaValueFieldDefinition<Integer> underTest =
            JavaValueFieldDefinition.newInstance(KNOWN_JSON_POINTER, Integer.class, JsonValue::isNumber,
                    JsonValue::asInt);
    final int mapped = underTest.mapValue(intJsonValue);
    assertThat(mapped).isEqualTo(intValue);
}