### Question:
IPDevice extends XBeeDevice { @Override public void sendBroadcastData(byte[] data) throws TimeoutException, XBeeException { throw new UnsupportedOperationException(OPERATION_EXCEPTION); } protected  IPDevice(String port, int baudRate); protected  IPDevice(String port, int baudRate, int dataBits, int stopBits, int parity, int flowControl); protected  IPDevice(String port, SerialPortParameters serialPortParameters); protected  IPDevice(IConnectionInterface connectionInterface); @Override XBeeNetwork getNetwork(); @Override void readDeviceInfo(); Inet4Address getIPAddress(); void setDestinationIPAddress(Inet4Address address); Inet4Address getDestinationIPAddress(); @Override Inet6Address getIPv6Address(); @Override Inet6Address getIPv6DestinationAddress(); @Override void setIPv6DestinationAddress(Inet6Address ipv6Address); @Override XBee16BitAddress get16BitAddress(); @Override XBee64BitAddress getDestinationAddress(); @Override void setDestinationAddress(XBee64BitAddress xbee64BitAddress); @Override byte[] getPANID(); @Override void setPANID(byte[] panID); @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(Inet4Address ipAddress, int destPort, 
			IPProtocol protocol, boolean closeSocket, byte[] data); void sendIPData(Inet4Address ipAddress, int destPort, IPProtocol protocol, byte[] data); void sendIPDataAsync(Inet4Address ipAddress, int destPort, 
			IPProtocol protocol, boolean closeSocket, byte[] data); void sendIPDataAsync(Inet4Address ipAddress, int destPort, 
			IPProtocol protocol, byte[] data); void sendBroadcastIPData(int destPort, byte[] data); IPMessage readIPData(); IPMessage readIPData(int timeout); IPMessage readIPDataFrom(Inet4Address ipAddress); IPMessage readIPDataFrom(Inet4Address ipAddress, int timeout); static final String BROADCAST_IP; }### Answer:
@SuppressWarnings("deprecation") @Test public void testNotSupportedOperationSendBroadcastData() throws Exception { exception.expect(UnsupportedOperationException.class); exception.expectMessage(is(equalTo("Operation not supported in this module."))); ipDevice.sendBroadcastData(null); }