private void assertRulesEqual(Rule origRule, Rule parsedRule) {
   assertEquals("The rule names do not match.", origRule.getName(), parsedRule.getName());
   assertEquals(
       "The descriptions do not match.", origRule.getDescription(), parsedRule.getDescription());
   assertEquals(
       "The membership rules do not match.",
       origRule.getMembershipRule(),
       parsedRule.getMembershipRule());
 }
 private JSONObject createRuleFromList(Rule rule) throws JSONException {
   return GroupsAndRulesJSONUtil.createRule(
       rule.getName(), rule.getDescription(), rule.getMembershipRule());
 }