final SubGroupBody body = (SubGroupBody) defaultGroup.getBody();
final RelationalGroup group1 = (RelationalGroup) body.getGroup();
assertEquals("Rel-Group", "group-field1", group1.getFieldsArray()[0]);
final SubGroupBody body1 = (SubGroupBody) group1.getBody();
final CrosstabGroup ctGroup = (CrosstabGroup) body1.getGroup();
final CrosstabRowGroupBody body2 = (CrosstabRowGroupBody) ctGroup.getBody();
final CrosstabRowGroup rowGroup = body2.getGroup();
assertEquals("Row-Group", "group-field2", rowGroup.getField());
final CrosstabColumnGroupBody body3 = (CrosstabColumnGroupBody) rowGroup.getBody();
final CrosstabColumnGroup colGroup = body3.getGroup();
assertEquals("Col-Group", "group-field3", colGroup.getField());