NcCompliantAdapterDeviceInterface implements DeviceInterface { @Override public ConnectionState getConnectionState(Device device) { return m_ncm.getConnectionState(device); } NcCompliantAdapterDeviceInterface(NetconfConnectionManager ncm); @Override Future<NetConfResponse> align(Device device, EditConfigRequest request, NetConfResponse getConfigResponse); @Override Pair<AbstractNetconfRequest, Future<NetConfResponse>> forceAlign(Device device, NetConfResponse getConfigResponse); @Override Future<NetConfResponse> get(Device device, GetRequest getRequest); @Override void veto(Device device, EditConfigRequest request, Document oldDataStore, Document updatedDataStore); @Override Future<NetConfResponse> getConfig(Device device, GetConfigRequest getConfigRequest); @Override ConnectionState getConnectionState(Device device); @Override Notification normalizeNotification(Notification notification);  }
@Test public void testGetConnectionStateOfDevice() { m_deviceInterface.getConnectionState(m_device); verify(m_ncm).getConnectionState(m_device); }