OrientationFilter filter = new OrientationFilter(serializer, true);
parser.setDocumentHandler(filter);
parser.parseStyleSheet(new InputSource(new StringReader(ltSheet)));
out.close();
String actualRTSheet = out.toString();
StylesheetObject expected = StylesheetObject.createStylesheet(expectedRTSheet);
StylesheetObject actual = StylesheetObject.createStylesheet(actualRTSheet);
if (!expected.equals(actual))
{
fail("Stylesheet " + actualRTSheet + " should be the same than " + expectedRTSheet);
}
}