def METHOD_NAME(self, socket_patches):
    expected = [{
        "requestId": b"request_id", "headers": [], "parameters": [
            {"name": "input_name",
             "contentType": "",
             "value": b"binary"
             }
        ]
    }]
    socket_patches.socket.recv.side_effect = [
        b"I",
        b"\x00\x00\x00\x0a", b"request_id",
        b"\xFF\xFF\xFF\xFF",
        b"\x00\x00\x00\x0a", b"input_name",
        b"\x00\x00\x00\x00",
        b"\x00\x00\x00\x06", b"binary",
        b"\xFF\xFF\xFF\xFF",  # end of parameters
        b"\xFF\xFF\xFF\xFF"  # end of batch
    ]
    cmd, ret = codec.retrieve_msg(socket_patches.socket)
    assert cmd == b'I'
    assert ret == expected