public class ReportQueriesTest {
@Test
public void testDataLinkage() throws Exception {
Report report = createReport();
BandData rootBand = new BandData(BandData.ROOT_BAND_NAME);
rootBand.setData(new HashMap<String, Object>());
rootBand.setReportFieldFormats(report.getReportFieldFormats());
rootBand.setFirstLevelBandDefinitionNames(new HashSet<String>());
new DataExtractorImpl(new DefaultLoaderFactory().setGroovyDataLoader(new GroovyDataLoader(new DefaultScriptingImpl()))).extractData(report, new HashMap<String, Object>(), rootBand);
List<BandData> bands = rootBand.getChildrenByName("Band1");