# File test/test_writer.rb, line 60
    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

      messg = "HTTP/1.1 200 OK\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(1, @flush_call)
      assert_match(@log_info, %"^client - - \[.*\] GET /hello/world HTTP/1.1 200 #{long_chunk.length * 3} - -$")
    end