### Question:
CellularDevice extends IPDevice { @Override public void setDIOChangeDetection(Set<IOLine> lines) throws TimeoutException, XBeeException { throw new UnsupportedOperationException(OPERATION_EXCEPTION); } CellularDevice(String port, int baudRate);  CellularDevice(String port, int baudRate, int dataBits, int stopBits, int parity, int flowControl);  CellularDevice(String port, SerialPortParameters serialPortParameters);  CellularDevice(IConnectionInterface connectionInterface); @Override void open(); @Override XBeeProtocol getXBeeProtocol(); @Override void readDeviceInfo(); boolean isConnected(); XBeeIMEIAddress getIMEIAddress(); CellularAssociationIndicationStatus getCellularAssociationIndicationStatus(); @Override XBee64BitAddress get64BitAddress(); @Override void addIOSampleListener(IIOSampleReceiveListener listener); @Override void removeIOSampleListener(IIOSampleReceiveListener listener); @Override Set<IOLine> getDIOChangeDetection(); @Override void setDIOChangeDetection(Set<IOLine> lines); @Override int getIOSamplingRate(); @Override void setIOSamplingRate(int rate); @Override String getNodeID(); @Override void setNodeID(String nodeID); @Override PowerLevel getPowerLevel(); @Override void setPowerLevel(PowerLevel powerLevel); @Override void addSMSListener(ISMSReceiveListener listener); @Override void removeSMSListener(ISMSReceiveListener listener); void sendSMS(String phoneNumber, String data); void sendSMSAsync(String phoneNumber, String data);  }### Answer:
@SuppressWarnings("deprecation") @Test public void testNotSupportedOperationSetDIOChangeDetection() throws Exception { exception.expect(UnsupportedOperationException.class); exception.expectMessage(is(equalTo("Operation not supported in Cellular protocol."))); cellularDevice.setDIOChangeDetection(null); }