@Test
public void doSetFieldIfPredicateEvaluatesToTrue() {

    final JsonField bazField = JsonFactory.newField(bazKey, eddard.getValue());
    final JsonField barField = JsonFactory.newField(barKey, JsonFactory.newObject().set(bazField));
    final JsonField expectedField = JsonFactory.newField(fooKey, JsonFactory.newObject().set(barField));
    underTest.set(pointer, eddard.getValue(), jsonValue -> true);
    assertThat(underTest).containsExactly(expectedField);
}