# File test/test_writer.rb, line 129
    def test_response_with_long_body
      long_chunk = ' ' * (Rucy::HTTPWriter::BUFFERING_THRESHOLD + 1)
      @response.set_header('Content-Type', 'application/octet-stream')
      @response.start_body
      @response << long_chunk
      @response << long_chunk
      @response << long_chunk
      @writer.close
      assert_equal(long_chunk.length * 3, @writer.send_size)

      messg = "HTTP/1.1 200 OK\r\n"
      messg << "Connection: close\r\n"
      messg << "Content-Type: application/octet-stream\r\n"
      messg << "\r\n"
      messg << long_chunk
      messg << long_chunk
      messg << long_chunk
      assert_equal(messg, @write_messg)
      assert_equal(1, @flush_call)
    end