resourceManager.registerDefaults();
final Resource directly = resourceManager.createDirectly(data, MasterReport.class);
final MasterReport parsedReport = (MasterReport) directly.getResource();
assertNotNull(parsedReport);
final WizardSpecification specification =
WizardProcessorUtil.loadWizardSpecification(report, report.getResourceManager());
assertNotNull(specification);
final GroupDefinition[] resultGroups = specification.getGroupDefinitions();
assertEquals(3, resultGroups.length);
assertEquals("group-field1", resultGroups[0].getField());
assertEquals("group-field2", resultGroups[1].getField());
assertEquals("group-field3", resultGroups[2].getField());
assertEquals(GroupType.RELATIONAL, resultGroups[0].getGroupType());
assertEquals(GroupType.CT_ROW, resultGroups[1].getGroupType());
assertEquals(GroupType.CT_COLUMN, resultGroups[2].getGroupType());
final DetailFieldDefinition[] resultDetails = specification.getDetailFieldDefinitions();
assertEquals(3, resultDetails.length);
assertEquals("detail-field1", resultDetails[0].getField());
assertEquals("detail-field2", resultDetails[1].getField());
assertEquals("detail-field3", resultDetails[2].getField());