# File test/test_writer.rb, line 108
    def test_response
      @response.set_header('Content-Type', 'text/html')
      @response.start_body
      @response << "<html>\n"
      @response << "Hello world.\n"
      @response << "</html>\n"
      @writer.close
      assert_equal(28, @writer.send_size)

      messg = "HTTP/1.1 200 OK\r\n"
      messg << "Content-Length: 28\r\n" # auto-measured
      messg << "Content-Type: text/html\r\n"
      messg << "\r\n"
      messg << "<html>\n"
      messg << "Hello world.\n"
      messg << "</html>\n"
      assert_equal(messg, @write_messg)
      assert_equal(1, @write_call)
      assert_equal(1, @flush_call)
    end