DeviceReconnectionNotificationListener implements ConnectionListener { public void destroy() { m_netconfConnectionManager.unregisterDeviceConnectionListener(this); } DeviceReconnectionNotificationListener(NotificationService notificationService,
                                                  NetconfConnectionManager netconfConnectionManager); void init(); void destroy(); @Override void deviceConnected(Device device, NetconfClientSession clientSession); @Override void deviceDisConnected(Device device, NetconfClientSession session);  }
@Test public void testDestroy() { m_listener.destroy(); verify(m_connMgr).unregisterDeviceConnectionListener(m_listener); }