async def METHOD_NAME(self):
    """Test de/serialization."""
    test_protocols = [
        {
            "pid": DIDCommPrefix.qualify_current("basicmessage/1.0/message"),
            "roles": [],
        }
    ]
    query_msg = Query(query="*", comment="test")
    disclose_msg = Disclose(protocols=test_protocols)
    ex_rec = V10DiscoveryExchangeRecord(
        disclose=disclose_msg,
    )
    ex_rec.query_msg = query_msg
    assert type(ex_rec.query_msg) == Query
    ser = ex_rec.serialize()
    deser = V10DiscoveryExchangeRecord.deserialize(ser)
    assert type(deser.query_msg) == Query
    assert type(ex_rec.disclose) == Disclose
    ser = ex_rec.serialize()
    deser = V10DiscoveryExchangeRecord.deserialize(ser)
    assert type(deser.disclose) == Disclose