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);
RenderNode second = MatchFactory.findElementByName(logicalPageBox, "second");
assertTrue(second instanceof ParagraphRenderBox);
ParagraphRenderBox p = (ParagraphRenderBox) second;
assertTrue(p.getPool().getFirstChild().getNext() instanceof RenderableReplacedContentBox);