* @throws Exception
*/
public void testBold() throws Exception {
DOMOutputBuffer buffer = new DOMOutputBuffer();
buffer.initialise();
protocol.openBold(buffer, new BoldAttributes());
buffer.appendEncoded("Test");
protocol.closeBold(buffer, new BoldAttributes());
String expected = "<b>Test</b>";
assertEquals("Protocol string should match", expected,
bufferToString(buffer));
}