### Question:
XmlRpcNotifier { public boolean sendInterfaceUpEvent(final Event event) { Assert.notNull(event, "event object must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(getLabelForEventNode(event))); params.addElement(String.valueOf(event.getInterface())); params.addElement(String.valueOf(event.getHost())); params.addElement(String.valueOf(getEventHost(event))); params.addElement(String.valueOf(event.getTime())); return sendXmlrpcRequest(XMLRPC_INTERFACE_UP_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 testSendInterfaceUpEvent() throws Exception { Date date = new Date(); m_anticipator.anticipateCall("sendInterfaceUpEvent", s_nodeLabel, s_interface, s_host, s_host, EventConstants.formatToString(date)); EventBuilder bldr = serviceEventBuilder(date); assertTrue("notifier sendInterfaceUpEvent", m_notifier.sendInterfaceUpEvent(bldr.getEvent())); finishUp(); }
@Test public void testFailureSendInterfaceUpEvent() throws Exception { Date date = new Date(); finishUp(); m_anticipator.shutdown(); EventBuilder bldr = serviceEventBuilder(date); assertFalse("notifier sendInterfaceUpEvent", m_notifier.sendInterfaceUpEvent(bldr.getEvent())); }