report.getReportHeader().addElement(elementX);
// setup a dummy environment that simulates the setup of a full prd
final ReportDesignerContext rdc = new TestReportDesignerContext();
rdc.addMasterReport(report);
final ReportRenderContext activeContext = rdc.getReportRenderContext(0);
rdc.setActiveDocument(activeContext);
assertNotNull(activeContext);
// use the style editor panel in isolation to make the whole process debuggable ..
final TestStyleEditorPanel sep = new TestStyleEditorPanel();
sep.setReportDesignerContext(rdc);
assertEquals(0, sep.getData().length);
final Element element = report.getReportHeader().getElement(0);
assertTrue(activeContext.getSelectionModel().add(element));
assertEquals(1, sep.getData().length);
assertEquals(new Float(0), findStyleValue(sep, ElementStyleKeys.POS_Y));
sep.setRefreshDataCalled(false);
final MonitorTableListener monitorTableListener = new MonitorTableListener();