public void test_Compartment_createWithNS()
{
XMLNamespaces xmlns = new XMLNamespaces();
xmlns.add( "http://www.sbml.org", "testsbml");
SBMLNamespaces sbmlns = new SBMLNamespaces(2,1);
sbmlns.addNamespaces(xmlns);
Compartment c = new Compartment(sbmlns);
assertTrue( c.getTypeCode() == libsbml.SBML_COMPARTMENT );
assertTrue( c.getMetaId() == "" );
assertTrue( c.getNotes() == null );
assertTrue( c.getAnnotation() == null );
assertTrue( c.getLevel() == 2 );
assertTrue( c.getVersion() == 1 );
assertTrue( c.getNamespaces() != null );
assertTrue( c.getNamespaces().getLength() == 2 );
assertTrue( c.getName() == "" );
assertTrue( c.getSpatialDimensions() == 3 );
assertTrue( c.getConstant() == true );
c = null;
}