assertEquals("before ---fetched inline cache item--- middle ---inline cache item--- after", result);
}
public void testIncludeReplaceElementFragment() throws IOException, HttpErrorPage {
String page =
"before <esi:include src='$(PROVIDER{mock})/include-replace' >"
<BUG>+ "<esi:replace fragment='replaceable-fragment'>$(HTTP_COOKIE{cookieName})</esi:replace>"
</BUG>
+ "</esi:include> after";
String includedPage =
"-incl-page-start" + " <esi:fragment name='replaceable-fragment'>replaced content</esi:fragment>"

assertEquals("before ---fetched inline cache item--- middle ---inline cache item--- after", result);
}
public void testIncludeReplaceElementFragment() throws IOException, HttpErrorPage {
String page =
"before <esi:include src='$(PROVIDER{mock})/include-replace' >"
+ "<esi:replace fragment='replaceable-fragment'><esi:vars>$(HTTP_COOKIE{cookieName})</esi:vars></esi:replace>"
+ "</esi:include> after";
String includedPage =
"-incl-page-start" + " <esi:fragment name='replaceable-fragment'>replaced content</esi:fragment>"
