String result = null;
SMS_DOMOutputBuffer emptyBuffer = new SMS_DOMOutputBuffer();
final SMS_DOMOutputBuffer rootBuffer = new SMS_DOMOutputBuffer();
final MarinerPageContext context = protocol.getMarinerPageContext();
context.pushOutputBuffer(rootBuffer);
ListItemAttributes listItemAttributes = new ListItemAttributes();
protocol.openOrderedList(emptyBuffer, new OrderedListAttributes());
protocol.openListItem( emptyBuffer, listItemAttributes);
protocol.openListItem( emptyBuffer, listItemAttributes);
protocol.openListItem( emptyBuffer, listItemAttributes);
protocol.openListItem( emptyBuffer, listItemAttributes);
protocol.closeOrderedList(emptyBuffer, new OrderedListAttributes());
result = getMarkup((DOMOutputBuffer)context.getCurrentOutputBuffer());
assertEquals("1 2 3 4",result);
}