public void test_XMLAttributes_add1()
{
XMLAttributes xa = new XMLAttributes();
XMLTriple xt2 = new XMLTriple("name2", "http://name2.org/", "p2");
int i = xa.add( "name1", "val1", "http://name1.org/", "p1");
assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
i = xa.add(xt2, "val2");
assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
assertTrue( xa.getLength() == 2 );
assertTrue( xa.isEmpty() == false );
i = xa.add( "noprefix", "val3");
assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
assertTrue( xa.getLength() == 3 );
assertTrue( xa.isEmpty() == false );
xa = null;
xt2 = null;
}