def METHOD_NAME(metadata_store):
    """
    Test converting a metadata payload to a metadata object
    """
    metadata = metadata_store.ChannelNode.from_dict({})
    metadata_dict = metadata.to_dict()
    metadata.delete()
    orm.flush()
    metadata_payload = ChannelNodePayload(**metadata_dict)
    assert metadata_store.ChannelNode.from_payload(metadata_payload)