DeviceReconnectionNotificationAction implements ConnectionListener { public void init() { m_netconfConnectionManager.registerDeviceConnectionListener(this); } DeviceReconnectionNotificationAction(NotificationService notificationService,
                                                NetconfConnectionManager netconfConnectionManager, AdapterManager adapterManager,
                                                PmaRegistry pmaRegistry); void init(); void destroy(); @Override void deviceConnected(Device device, NetconfClientSession clientSession); @Override void deviceDisConnected(Device device, NetconfClientSession session);  }
@Test public void testInit() { m_deviceReconnectNotificationAction.init(); verify(m_netconfConnectionManager).registerDeviceConnectionListener(m_deviceReconnectNotificationAction); }