page.render(htmlWriter, request);
Pattern pathFinder = Pattern.compile("(href|src)=\"([^\"]*)\"");
Matcher matcher = pathFinder.matcher(writer.toString());
while (matcher.find()) {
MatchResult result = matcher.toMatchResult();
String[] components = result.group(2).trim().split("/");
ConsolePageTest.assertEquals("Missing initial /","", components[0]);
ConsolePageTest.assertEquals(jstd, components[1]);
ConsolePageTest.assertFalse("Second component should not be the prefix.",
jstd.equals(components[2]));
}