def METHOD_NAME(running_app, full_record):
    """Test JSON CLS Serializer."""
    # if the record is created this field will be present
    full_record["id"] = "12345-abcde"
    expected_data = {
        "publisher": "InvenioRDM",
        "DOI": "10.1234/inveniordm.1234",
        "language": "dan",
        "title": "InvenioRDM",
        "issued": {"date-parts": [["2018"], ["2020", "09"]]},
        "abstract": "A description \nwith HTML tags",
        "author": [
            {
                "family": "Nielsen",
                "given": "Lars Holm",
            }
        ],
        "note": "Funding by European Commission ROR 00k4n6c32.",
        "version": "v1.0",
        "type": "graphic",
        "id": "12345-abcde",
    }
    serializer = CSLJSONSerializer()
    serialized_record = serializer.dump_obj(full_record)
    assert serialized_record == expected_data
    # test wrong publication date
    rec_wrong_date = deepcopy(full_record)
    rec_wrong_date["metadata"]["publication_date"] = "wrong"
    expected = deepcopy(expected_data)
    del expected["issued"]  # missing
    assert serialized_record == expected_data