@Test
public void testNonUtf8() throws IOException {
final TobagoResponseWriter writer1 = new HtmlResponseWriter(stringWriter, "", "ISO-8859-1");
writer1.startElement(HtmlElements.INPUT, null);
writer1.writeAttribute(HtmlAttributes.VALUE, "Gutschein über 100 €.", null);
writer1.writeAttribute(HtmlAttributes.READONLY, true);
writer1.endElement(HtmlElements.INPUT);
writer1.close();
Assert.assertEquals("<input value='Gutschein über 100 €.' readonly='readonly'\n>",
stringWriter.toString());