clone() public method

public clone ( ) : XMLToken
return XMLToken
 public void test_Token_clone()
 {
     XMLTriple t = new XMLTriple("sarah", "http://foo.org/", "bar");
       XMLToken token = new XMLToken(t,3,4);
       assertTrue( token.getName() ==  "sarah" );
       assertTrue( token.getURI() ==  "http://foo.org/" );
       assertTrue( token.getPrefix() ==  "bar" );
       assertTrue( token.isEnd() == true );
       assertTrue( token.isEOF() == false );
       assertTrue( token.getLine() == 3 );
       assertTrue( token.getColumn() == 4 );
       XMLToken token2 = (XMLToken) token.clone();
       assertTrue( token2.getName() ==  "sarah" );
       assertTrue( token2.getURI() ==  "http://foo.org/" );
       assertTrue( token2.getPrefix() ==  "bar" );
       assertTrue( token2.isEnd() == true );
       assertTrue( token2.isEOF() == false );
       assertTrue( token2.getLine() == 3 );
       assertTrue( token2.getColumn() == 4 );
       t = null;
       token = null;
       token2 = null;
 }