public void test_Species_setCharge2() { Species c = new Species(2,2); int i = c.setCharge(4); assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE ); assertEquals( false, c.isSetCharge() ); c = null; }