def METHOD_NAME(recid):
    """Test serialisation of record with given recid."""
    uuid = PersistentIdentifier.get('recid', recid).object_uuid
    record = Record.get_record(uuid)
    experiment = record.get('experiment', None)
    doi = record['doi']
    # serialize record to schema40
    doc = DataCiteSerializer().dump(record)
    schema40.validate(doc)
    doc = schema40.tostring(doc)
    click.echo(doc)