assertEquals(M.getEvent(-2), null);
}
@Test
public void test_Model_add_get_FunctionDefinitions() throws ParseException {
FunctionDefinition fd1 = new FunctionDefinition(2, 4);
FunctionDefinition fd2 = new FunctionDefinition(2, 4);
fd1.setId("fd1");
fd2.setId("fd2");
fd1.setMath(ASTNode.parseFormula("lambda(2)"));
fd2.setMath(ASTNode.parseFormula("lambda(x, x+2)"));
M.addFunctionDefinition(fd1);
M.addFunctionDefinition(fd2);
assertTrue(M.getNumFunctionDefinitions() == 2);
// assertTrue(!M.getFunctionDefinition(0).equals(fd1)); // would be the same in jsbml
// assertTrue(!M.getFunctionDefinition(1).equals(fd2));