@Test
public void testDocCheckWithFields() throws JAXBException {

  Gedcomx record = MarshalUtil.unmarshal(getClass().getClassLoader().getResourceAsStream("gedcomx-record.xml"));
  Gedcomx collection = MarshalUtil.unmarshal(getClass().getClassLoader().getResourceAsStream("gedcomx-collection.xml"));
  // Known missing label IDs
  checkFields(record, collection, "IMAGE_ID_NORM", "IMAGE_ARK");
  // Change a field ID, and make sure it isn't found.
  FieldValue fieldValue = record.getPersons().get(0).getFacts().get(0).getDate().getFields().get(0).getValues().get(0);
  String labelId = fieldValue.getLabelId();
  fieldValue.setLabelId(labelId + "_BROKEN");
  checkFields(record, collection, "IMAGE_ID_NORM", "IMAGE_ARK", labelId + "_BROKEN");
}