* @throws Exception If there is a problem rendering or with any test assert
*/
private void testRenderer(SeparatorRenderer renderer,
String expected) throws Exception {
// Create the test buffer
TestDOMOutputBuffer testBuffer = new TestDOMOutputBuffer();
// Start span element
testBuffer.openElement("span");
// Render using the test buffer
renderer.render(testBuffer);
// End span element
testBuffer.closeElement("span");
// Extract the output from the rendering as a string.
String actual = DOMUtilities.toString(testBuffer.getRoot());
assertNotNull("The actual string should exist", actual);
// Normalise expected - this requires that all input strings contain
// some markup otherwise the test will fail on this string conversion!
expected = DOMUtilities.provideDOMNormalizedString("<span>" +