* @throws Exception
*/
public void testItalic() throws Exception {
DOMOutputBuffer buffer = new DOMOutputBuffer();
buffer.initialise();
protocol.openItalic(buffer, new ItalicAttributes());
buffer.appendEncoded("Test");
protocol.closeItalic(buffer, new ItalicAttributes());
String expected = "<i>Test</i>";
assertEquals("Protocol string should match", expected,
bufferToString(buffer));
}