public void test1() throws Exception {
HtmlPage p = createWebClient().goTo("self/test1");
HtmlElement outer = (HtmlElement)p.selectSingleNode("//INPUT[@name='outer']");
HtmlElement inner = (HtmlElement)p.selectSingleNode("//INPUT[@name='inner']");
HtmlInput field = (HtmlInput)p.selectSingleNode("//INPUT[@type='text'][@name='_.field']");
// outer gets unfolded, but inner should be still folded
outer.click();
assertFalse(field.isDisplayed());
// now click inner, to reveal the field