### Question:
IPv6Device extends XBeeDevice { @Override public void addDataListener(IDataReceiveListener listener) { throw new UnsupportedOperationException(OPERATION_EXCEPTION); } protected  IPv6Device(String port, int baudRate); protected  IPv6Device(String port, int baudRate, int dataBits, int stopBits,
			int parity, int flowControl); protected  IPv6Device(String port, SerialPortParameters serialPortParameters); protected  IPv6Device(IConnectionInterface connectionInterface); @Override XBeeNetwork getNetwork(); @Override void readDeviceInfo(); @Override XBee16BitAddress get16BitAddress(); @Override XBee64BitAddress getDestinationAddress(); @Override void setDestinationAddress(XBee64BitAddress xbee64BitAddress); @Override void addDataListener(IDataReceiveListener listener); @Override void removeDataListener(IDataReceiveListener listener); @Override XBeeMessage readData(); @Override XBeeMessage readData(int timeout); @Override XBeeMessage readDataFrom(RemoteXBeeDevice remoteXBeeDevice); @Override XBeeMessage readDataFrom(RemoteXBeeDevice remoteXBeeDevice,
			int timeout); @Override void sendBroadcastData(byte[] data); @Override void sendData(RemoteXBeeDevice remoteXBeeDevice, byte[] data); @Override void sendDataAsync(RemoteXBeeDevice remoteXBeeDevice, byte[] data); @Override void addIPDataListener(IIPDataReceiveListener listener); @Override void removeIPDataListener(IIPDataReceiveListener listener); void startListening(int sourcePort); void stopListening(); void sendIPData(Inet6Address ipv6Address, int destPort, 
			IPProtocol protocol, byte[] data); void sendIPDataAsync(Inet6Address ipv6Address, int destPort, 
			IPProtocol protocol, byte[] data); IPMessage readIPData(); IPMessage readIPData(int timeout); IPMessage readIPDataFrom(Inet6Address ipv6Address); IPMessage readIPDataFrom(Inet6Address ipv6Address, int timeout);  }### Answer:
@SuppressWarnings("deprecation") @Test public void testNotSupportedOperationAddDataListener() throws Exception { exception.expect(UnsupportedOperationException.class); exception.expectMessage(is(equalTo("Operation not supported in this module."))); ipv6Device.addDataListener(null); }