def METHOD_NAME():
    pool = SimpleBufferPool(1000, 1000)
    buf1 = pool.allocate(1000, 1000)
    message = ''.join(map(str, range(100)))
    buf1.write(message.encode('utf-8'))
    pool.deallocate(buf1)
    buf2 = pool.allocate(1000, 1000)
    assert buf2.read() == b''