def METHOD_NAME(self):
    sio = io.BytesIO()
    f = tflow.tflow()
    f.marked = ":default:"
    f.marked = True
    f.comment = "test comment"
    f.request.content = bytes(range(256))
    w = mitmproxy.io.FlowWriter(sio)
    w.add(f)
    sio.seek(0)
    r = mitmproxy.io.FlowReader(sio)
    l = list(r.stream())
    assert len(l) == 1
    f2 = l[0]
    assert f2.get_state() == f.get_state()
    assert f2.request.data == f.request.data
    assert f2.marked