public void test_SBase_hasValidLevelVersionNamespaceCombination() { Species species = new Species (3, 1); assertTrue (species.hasValidLevelVersionNamespaceCombination () == true); species = null; XMLNamespaces invalidNamespaces = new XMLNamespaces (); species = new Species (3, 1); species.setNamespaces (invalidNamespaces); invalidNamespaces.@add (SBMLNamespaces.getSBMLNamespaceURI (2, 3), "sbml23"); species.setNamespaces (invalidNamespaces); assertTrue (species.hasValidLevelVersionNamespaceCombination () == false); invalidNamespaces.@add (SBMLNamespaces.getSBMLNamespaceURI (3, 1), "sbml31"); species.setNamespaces (invalidNamespaces); assertTrue (species.hasValidLevelVersionNamespaceCombination () == false); invalidNamespaces.clear (); invalidNamespaces.@add (SBMLNamespaces.getSBMLNamespaceURI (3, 1), "sbml31"); species.setNamespaces (invalidNamespaces); assertTrue (species.hasValidLevelVersionNamespaceCombination () == true); species = null; }