clone() public method

public clone ( ) : Unit
return Unit
 public void test_Unit_clone()
 {
     Unit o1 = new Unit(2,4);
       o1.setKind(libsbml.UNIT_KIND_MOLE);
       assertTrue( o1.getKind() == libsbml.UNIT_KIND_MOLE );
       Unit o2 = o1.clone();
       assertTrue( o2.getKind() == libsbml.UNIT_KIND_MOLE );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }