### Question:
PassiveStatusKeeper extends AbstractServiceDaemon implements EventListener { boolean isPassiveStatusEvent(Event e) { return PASSIVE_STATUS_UEI.equals(e.getUei()) && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_NODE_LABEL) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_IPADDR) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_NAME) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_STATUS) != null; } PassiveStatusKeeper();  PassiveStatusKeeper(EventIpcManager eventMgr); synchronized static void setInstance(PassiveStatusKeeper psk); synchronized static PassiveStatusKeeper getInstance(); void setStatus(String nodeLabel, String ipAddr, String svcName, PollStatus pollStatus); void setStatus(PassiveStatusKey key, PollStatus pollStatus); PollStatus getStatus(String nodeLabel, String ipAddr, String svcName); void onEvent(Event e); EventIpcManager getEventManager(); void setEventManager(EventIpcManager eventMgr); DataSource getDbConnectoinFactory(); void setDataSource(DataSource dataSource);  }### Answer:
@Test public void testEventWithPassiveStatusParms() { Event e = createPassiveStatusEvent("Router", "192.168.1.1", "ICMP", "Down"); assertTrue(m_psk.isPassiveStatusEvent(e)); }
@Test public void testIsPassiveStatusEvent() throws MarshalException, ValidationException { Event e = createPassiveStatusEvent("Router", "192.168.1.1", "ICMP", "Down"); assertTrue(m_psk.isPassiveStatusEvent(e)); e = createPassiveStatusEvent("Router", "192.168.1.1", null, "Down"); assertFalse(m_psk.isPassiveStatusEvent(e)); e.setUei("bogusUei"); assertFalse(m_psk.isPassiveStatusEvent(e)); }