@Test
public void isMarkedAsReturnsTrueIfDefinitionContainsAskedMarker() {

    knownFieldMarkers = new JsonFieldMarker[] {schemaVersionMarkerMock, regularTypeMarkerMock};
    final JavaValueFieldDefinition<Integer> underTest =
            JavaValueFieldDefinition.newInstance(KNOWN_JSON_POINTER, int.class, JsonValue::isNumber,
                    JsonValue::asInt, knownFieldMarkers);
    assertThat(underTest.isMarkedAs(regularTypeMarkerMock)).isTrue();
}