* Verify that <Code>toString()</code> returns a nice string representation
* of the <code>WebRequest</code>.
*/
public void testToString()
{
WebRequest request = new WebRequestImpl(new ServletConfiguration());
request.addHeader("header1", "value1");
request.addHeader("header1", "value2");
request.addParameter("param1", "value1", WebRequest.GET_METHOD);
request.addParameter("param1", "value1", WebRequest.POST_METHOD);
request.addCookie("cookie1", "value1");
request.setAutomaticSession(false);
request.setURL("jakarta.apache.org:80", "/catalog", "/garden",
"/implements/", "param1=value1¶m2=¶m3=value3");
String result = request.toString();
assertEquals("simulation URL = [protocol = [http], host name = "
+ "[jakarta.apache.org], port = [80], context path = [/catalog], "
+ "servlet path = [/garden], path info = [/implements/], query "
+ "string = [param1=value1¶m2=¶m3=value3]], automatic "