SBMLException {
SBMLDocument doc = new SBMLDocument(2, 4);
doc.addTreeNodeChangeListener(new SimpleTreeNodeChangeListener());
Model model = doc.createModel("test_model");
Parameter k1 = model.createParameter("k1");
Parameter k2 = model.createParameter("k2");
k1.addCVTerm(new CVTerm(CVTerm.Qualifier.BQB_IS, "test"));
k1.setConstant(false);
k2.setConstant(false);
Event event = model.createEvent("test_event");
Trigger trigger = event.createTrigger();
trigger.setMath(ASTNode.geq(new ASTNode(ASTNode.Type.NAME_TIME),