@Test
public void checkSetOrderElementAtWorkReportLevel() {
WorkReportType workReportType = givenBasicWorkReportType();
workReportType.setOrderElementIsSharedInLines(true);
WorkReport workReport = WorkReport.create(workReportType);
assertNull(workReport.getDate());
assertNull(workReport.getOrderElement());
assertNull(workReport.getResource());
workReport.setDate(new Date());
workReport.setOrderElement(givenOrderLine());
workReport.setResource(givenWorker());
assertNull(workReport.getDate());
assertNotNull(workReport.getOrderElement());
assertNull(workReport.getResource());
}