@Test
public void mapValueReturnsExpected() {

    final String stringValue = "Foo";
    final JsonValue jsonValue = JsonFactory.newValue(stringValue);
    final JavaValueFieldDefinition<String> underTest =
            JavaValueFieldDefinition.newInstance(KNOWN_JSON_POINTER, String.class, JsonValue::isString,
                    JsonValue::asString);
    final String mapped = underTest.mapValue(jsonValue);
    assertThat(mapped).isEqualTo(stringValue);
}