public void test_Rule_setMath2() {
   ASTNode math = new ASTNode(libsbml.AST_TIMES);
   ASTNode a = new ASTNode();
   a.setName("a");
   math.addChild(a);
   int i = R.setMath(math);
   assertTrue(i == libsbml.LIBSBML_INVALID_OBJECT);
   assertEquals(false, R.isSetMath());
   math = null;
 }
 public void test_Rule_setMath1() {
   ASTNode math = new ASTNode(libsbml.AST_TIMES);
   ASTNode a = new ASTNode();
   ASTNode b = new ASTNode();
   a.setName("a");
   b.setName("b");
   math.addChild(a);
   math.addChild(b);
   String formula;
   ASTNode math1;
   int i = R.setMath(math);
   assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
   assertEquals(true, R.isSetMath());
   math1 = R.getMath();
   assertTrue(math1 != null);
   formula = libsbml.formulaToString(math1);
   assertTrue(formula != null);
   assertTrue(formula.equals("a * b"));
   math = null;
 }