### Question:
XmlRpcNotifier { public boolean notifySuccess(final long txNo, final String uei, final String message) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(message, "message must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(message); return sendXmlrpcRequest(XMLRPC_SERVER_SUCCESS_COMMAND, params); } XmlRpcNotifier(final XmlrpcServer[] rpcServers, final int retries, final int elapseTime, final boolean verifyServer, final String localServer); boolean notifySuccess(final long txNo, final String uei, final String message); boolean notifyFailure(final long txNo, final String uei, final String reason); boolean notifyReceivedEvent(final long txNo, final String uei, final String message); boolean sendServiceDownEvent(final Event event); boolean sendServiceUpEvent(final Event event); boolean sendInterfaceDownEvent(final Event event); boolean sendInterfaceUpEvent(final Event event); boolean sendNodeDownEvent(final Event event); boolean sendNodeUpEvent(final Event event); boolean sendEvent(final Event event); void createConnection();  }### Answer:
@Test public void testNotifySuccess() { long txNo = 12345; String uei = "uei.opennms.org/something!"; String message = "hello"; m_anticipator.anticipateCall("notifySuccess", String.valueOf(txNo), uei, message); assertTrue("notifier notifySuccess", m_notifier.notifySuccess(txNo, uei, message)); finishUp(); }
@Test public void testFailureNotifySuccess() throws Exception { long txNo = 12345; String uei = "uei.opennms.org/something!"; String message = "hello"; finishUp(); m_anticipator.shutdown(); assertFalse("notifier notifySuccess", m_notifier.notifySuccess(txNo, uei, message)); }