public void testPageNamesFromASubPage() throws Exception {
WikiPage frontPage = WikiPageUtil.addPage(root, frontPagePath, "");
WikiPageUtil.addPage(frontPage, pageOnePath, "");
WikiPageUtil.addPage(frontPage, pageTwoPath, "");
request.setResource("");
SimpleResponse response = (SimpleResponse) responder.makeResponse(FitNesseUtil.makeTestContext(root), request);
assertHasRegexp(frontPageName, response.getContent());
assertDoesntHaveRegexp(pageOneName, response.getContent());
assertDoesntHaveRegexp(pageTwoName, response.getContent());
request.setResource(frontPageName);
response = (SimpleResponse) responder.makeResponse(FitNesseUtil.makeTestContext(root), request);
assertHasRegexp(pageOneName, response.getContent());
assertHasRegexp(pageTwoName, response.getContent());
assertDoesntHaveRegexp(frontPageName, response.getContent());
}