Foo foo = new Foo();
foo.setTitle("\t\b\n\f\r\"\'/\\");
stack.push(foo);
MockJspWriter jspWriter = new MockJspWriter();
jspWriter.setExpectedData("Foo is: \\t\\b\\n\\f\\r\\\"\\\'\\/\\\\");
MockPageContext pageContext = new MockPageContext();
pageContext.setJspWriter(jspWriter);
pageContext.setRequest(request);
// test
{PropertyTag tag = new PropertyTag();
tag.setEscape(false);
tag.setEscapeJavaScript(true);
tag.setPageContext(pageContext);
tag.setValue("%{toString()}");
tag.doStartTag();
tag.doEndTag();}
// verify test
request.verify();
jspWriter.verify();
pageContext.verify();
}