@Test
public void testLineBreaking() throws Exception
{
URL resource = getClass().getResource("rich-text-sample1.prpt");
ResourceManager mgr = new ResourceManager();
MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();
report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
report.getReportHeader().removeElement(report.getReportHeader().getElement(0));
report.getReportHeader().getElement(0).getStyle().setStyleProperty(TextStyleKeys.DIRECTION, TextDirection.RTL);
LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);