clone() public method

public clone ( ) : Delay
return Delay
 public void test_Delay_clone()
 {
     Delay o1 = new Delay(2,4);
       ASTNode node = new ASTNode(libsbml.AST_CONSTANT_PI);
       o1.setMath(node);
       node = null;
       assertTrue( o1.getMath() != null );
       Delay o2 = o1.clone();
       assertTrue( o1.getMath() != null );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }