@Test
public void testRegisterCallBackForTrapUpdates() throws Exception {

    m_trapListener.registerCallBackForTrapUpdates(m_trapCallback, "0.0.0.0", "162");
    assertEquals(1, m_trapListener.getNoOfCallbacks());
    m_trapListener.registerCallBackForTrapUpdates(m_trapCallback, "127.0.0.1", "222");
    assertEquals(2, m_trapListener.getNoOfCallbacks());
    m_trapListener.unRegisterCallBackForTrapUpdates(m_trapCallback, "0.0.0.0", "162");
    assertEquals(1, m_trapListener.getNoOfCallbacks());
    m_trapListener.unRegisterCallBackForTrapUpdates(m_trapCallback, "127.0.0.1", "222");
    assertEquals(0, m_trapListener.getNoOfCallbacks());
}