assertEquals("begin inside when end", result);
}
public void testMultipleWhen() throws IOException, HttpErrorPage {
String page =
"begin <esi:choose>" + "<esi:when test=\"'$(HTTP_COOKIE{group})'=='Advanced'\">"
<BUG>+ "unexpected cookie '$(HTTP_COOKIE{group})'" + "</esi:when>"
</BUG>
+ "<esi:when test=\"'$(HTTP_COOKIE{group})'=='Beginner'\">"
<BUG>+ "expected cookie '$(HTTP_COOKIE{group})'" + "</esi:when>" + "</esi:choose> end";
getRequestBuilder().addCookie(new BasicClientCookie("group", "Beginner"));</BUG>
String result = render(page);

assertEquals("begin inside when end", result);
}
public void testMultipleWhen() throws IOException, HttpErrorPage {
String page =
"begin <esi:choose>" + "<esi:when test=\"'$(HTTP_COOKIE{group})'=='Advanced'\">"
+ "<esi:vars>unexpected cookie '$(HTTP_COOKIE{group})'</esi:vars>" + "</esi:when>"
+ "<esi:when test=\"'$(HTTP_COOKIE{group})'=='Beginner'\">"
+ "<esi:vars>expected cookie '$(HTTP_COOKIE{group})'</esi:vars>" + "</esi:when>"
+ "</esi:choose> end";
getRequestBuilder().addCookie(new BasicClientCookie("group", "Beginner"));
String result = render(page);
