### Question:
GenericReportUnitResourceConverter extends DataSourceHolderResourceConverter<ServerReportUnitType, ClientReportUnitType> { @Override protected ResourceReference getDataSourceFromResource(ServerReportUnitType resource) { return resource.getDataSource(); }    }### Answer:
@Test public void getDataSourceFromResource() { final ReportUnit reportUnit = new ReportUnitImpl(); final ResourceReference resourceReference = new ResourceReference("/test/resource/uri"); reportUnit.setDataSource(resourceReference); final ResourceReference result = converter.getDataSourceFromResource(reportUnit); assertSame(result, resourceReference); }