public void test_Rule_clone() { Rule o1 = new RateRule(2, 1); o1.setVariable("a"); assertTrue(o1.getVariable() == "a"); ASTNode node = new ASTNode(libsbml.AST_CONSTANT_PI); o1.setMath(node); node = null; assertTrue(o1.isSetMath() == true); Rule o2 = o1.clone(); assertTrue(o2.getVariable() == "a"); assertTrue(o2.isSetMath() == true); assertTrue(o2.getParentSBMLObject() == o1.getParentSBMLObject()); o2 = null; o1 = null; }