@Test
public void testEscapeAttribute() throws Exception
{

    // "Attribute" escapes double and single quotes.
    StringWriter writer = new StringWriter();
    escapeHandler.escape(TEST_BUFFER.toCharArray(), 0, TEST_BUFFER.length(), true, writer);
    assertEquals("A&lt;&gt;&amp;&quot;&apos;&#x1;\t", writer.toString());
}