def _assert_materialization(msg, sbp, raw_json):
fields = msg['<STR_LIT>'] or dict()<EOL>live_msg = _SBP_TABLE[sbp.msg_type](sbp, **fields)<EOL>assert isinstance(live_msg.to_json_dict(), dict)<EOL>assert live_msg.to_json_dict() == json.loads(raw_json)<EOL>
Asserts that a message materialized will get serialized into the
    right JSON object.