### Question:
ContextConfigurator { public void addTrigger(String triggerId) { Element element = getPropertyElement("Scheduler", "triggers"); Element list = element.getChild("list", element.getNamespace()); List refs = list.getChildren("ref", element.getNamespace()); for (Iterator iterator = refs.iterator(); iterator.hasNext();) { Element ref = (Element) iterator.next(); if (triggerId.equals(ref.getAttribute("bean").getValue())) return; } Element ref = new Element("ref", element.getNamespace()); ref.setAttribute("bean", triggerId); list.addContent(ref); xml.writeXMLDoc(); } ContextConfigurator(String resource);  ContextConfigurator(); void setProperty(String id, String propertyName, String value); void clearPropertyValue(String id, String propertyName); void addPropertyBeanRefList(String id, String propertyName, List<? extends String> values); String getProperty(String id, String propertyName); String getPropertyProp(String id, String propertyName, String key); void setPropValue(String id, String propertyName, String key, String value); String getDialect(); boolean write(); void addTrigger(String triggerId);  }### Answer:
@Test public void testAddTrigger() { ContextConfigurator config = new ContextConfigurator(contextXml.getPath()); config.addTrigger("TestTrigger"); }