@Test
public void test_Model_addRules() throws ParseException {
Rule r1 = new AlgebraicRule(2, 4);
AssignmentRule r2 = new AssignmentRule(2, 4);
RateRule r3 = new RateRule(2, 4);
r2.setVariable("r2");
r3.setVariable("r3");
r1.setMath(ASTNode.parseFormula("2"));
r2.setMath(ASTNode.parseFormula("2"));
r3.setMath(ASTNode.parseFormula("2"));
M.addRule(r1);
M.addRule(r2);
M.addRule(r3);
assertTrue(M.getNumRules() == 3);
}