private JSONObject createGroupFromList(Group modelGroup) throws JSONException {
   return GroupsAndRulesJSONUtil.createGroup(
       modelGroup.getName(),
       modelGroup.getDataType().name(),
       modelGroup.getEvaluationOrder(),
       modelGroup.getRuleName());
 }
 private void assertGroupsEqual(Group origGroup, Group parsedGroup) {
   assertEquals("The group names do not match.", origGroup.getName(), parsedGroup.getName());
   assertEquals(
       "The group types do not match.", origGroup.getGroupType(), parsedGroup.getGroupType());
   assertEquals(
       "The data types do not match.", origGroup.getDataType(), parsedGroup.getDataType());
   assertEquals(
       "The evaluation orders do not match.",
       origGroup.getEvaluationOrder(),
       parsedGroup.getEvaluationOrder());
   assertEquals(
       "The rule names do not match.", origGroup.getRuleName(), parsedGroup.getRuleName());
 }