### Question:
OpenNMSProvisioner implements Provisioner { public boolean addServiceDNS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String lookup) { validateSchedule(retry, timeout, interval, downTimeInterval, downTimeDuration); checkPort(port); checkHostname(lookup); final Parm[] parm = new Parm[] { new Parm("port", port), new Parm("lookup", lookup), }; return addService(serviceId, retry, timeout, interval, downTimeInterval, downTimeDuration, DNS_MONITOR, DNS_PLUGIN, parm); }  boolean addServiceICMP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration); Parameter findParamterWithKey(final Service svc, final String key); boolean addServiceDNS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String lookup); boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner); boolean addServiceHTTP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String hostName, final int port, final String response, final String responseText, final String url, final String user, final String passwd, final String agent); boolean addServiceHTTPS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String hostName, final int port, final String response, final String responseText, final String url, final String user, final String passwd, final String agent); boolean addServiceDatabase(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String user, final String password, final String driver, final String url); Map<String, Object> getServiceConfiguration(final String pkgName, final String serviceId); void setCapsdConfig(final CapsdConfig capsdConfig); void setPollerConfig(final PollerConfig pollerConfig); void setEventManager(final EventIpcManager eventManager); void setCapsdDbSyncer(final CapsdDbSyncer capsdDbSyncer);  }### Answer:
@Test public void testAddServiceDNS() throws Exception { expectUpdateEvent(); m_mocks.replayAll(); m_provisioner.addServiceDNS("MyDNS", 11, 1111, 11111, 111, 111111, 101, "www.opennms.org"); checkDNSConfiguration("MyDNS", "MyDNS", 11, 1111, 11111, 111, 111111, 101, "www.opennms.org"); m_mocks.verifyAll(); verifyEvents(); }