protocol.addEnterEvents(buffer, canvasAttributes);
assertEquals("", DOMUtilities.toString(
buffer.getRoot(), protocol.getCharacterEncoder()));
EventAttributes events = canvasAttributes.getEventAttributes (false);
events.reset();
events.setEvent(EventConstants.ON_ENTER_BACKWARD, "eventBackward");
events.setEvent(EventConstants.ON_ENTER_FORWARD, "eventForward");
protocol.addEnterEvents(buffer, canvasAttributes);
assertEquals("<onevent type=\"onenterforward\">eventForward</onevent>" +
"<onevent type=\"onenterbackward\">eventBackward</onevent>",