for (String contentType: CONTENT_TYPES)
{
for (String encoding : ENCODINGS)
{
StringWriter swriter = new StringWriter();
HtmlResponseWriterImpl writer = new HtmlResponseWriterImpl(swriter, contentType , encoding);
facesContext.setResponseWriter(writer);
// note if appear a &, the & is escaped too,
// but when you see the output in a html browser
// the output it the same.
outputText.setValue(TEST_STRING);