}
public @Test void testParameterParserTool() throws Exception {
WebConversation conv = new WebConversation();
WebRequest req = new GetMethodWebRequest(ROOT_URL+"params.vm?foo=bar&b=false&n=55&d=1.2");
WebResponse resp = conv.getResponse(req);
/* check exists(foo) */
resp = submitWithParam(resp,"exists","exists","foo");
checkText(resp,"exists","true");
/* check get(foo) */
resp = submitWithParam(resp,"get","get","foo");
checkText(resp,"get","bar");
/* check getString(foo) */
resp = submitWithParam(resp,"getString","getString","foo");
checkText(resp,"getString","bar");
/* check getBoolean(b) */
resp = submitWithParam(resp,"getBoolean","getBoolean","b");
checkText(resp,"getBoolean","false");
/* check getNumber(n) */
resp = submitWithParam(resp,"getNumber","getNumber","n");
checkText(resp,"getNumber","55");
/* check getDouble(d) */
resp = submitWithParam(resp,"getDouble","getDouble","d");
checkText(resp,"getDouble","1.2");
/* check getInteger(n) */
resp = submitWithParam(resp,"getInteger","getInteger","n");
checkText(resp,"getInteger","55");
/* check getStrings(foo) */
resp = submitWithParam(resp,"getStrings","getStrings","foo");
checkTextStart(resp,"getStrings","[Ljava.lang.String;@");
/* check getBooleans(b) */
resp = submitWithParam(resp,"getBooleans","getBooleans","b");
checkTextStart(resp,"getBooleans","[Ljava.lang.Boolean;@");
/* check getNumbers(n) */
resp = submitWithParam(resp,"getNumbers","getNumbers","n");
checkTextStart(resp,"getNumbers","[Ljava.lang.Number;@");
/* check getDoubles(d) */
resp = submitWithParam(resp,"getDoubles","getDoubles","d");
checkTextStart(resp,"getDoubles","[D@");
/* check getInts(n) */
resp = submitWithParam(resp,"getInts","getInts","n");
checkTextStart(resp,"getInts","[I@");
/* check getString(bar,foo) */
WebForm form = resp.getFormWithName("getString2");
form.setParameter("getString1","'bar'");
form.setParameter("getString2","'foo'");
resp = form.submit();
checkText(resp,"getString2","foo");