### Question:
ThreadDevice extends IPv6Device { @Override protected AssociationIndicationStatus getAssociationIndicationStatus() throws TimeoutException, XBeeException { throw new UnsupportedOperationException(OPERATION_EXCEPTION); } ThreadDevice(String port, int baudRate);  ThreadDevice(String port, int baudRate, int dataBits, int stopBits, int parity, int flowControl);  ThreadDevice(String port, SerialPortParameters serialPortParameters);  ThreadDevice(IConnectionInterface connectionInterface); @Override void open(); @Override XBeeProtocol getXBeeProtocol(); boolean isConnected(); ThreadAssociationIndicationStatus getThreadAssociationIndicationStatus(); byte[] sendCoAPData(Inet6Address ipv6Address, String uri,
			HTTPMethodEnum method, byte[] data); byte[] sendCoAPData(Inet6Address ipv6Address, String uri, HTTPMethodEnum method,
			boolean applyChanges, byte[] data); void sendCoAPDataAsync(Inet6Address ipv6Address, String uri,
			HTTPMethodEnum method, byte[] data); void sendCoAPDataAsync(Inet6Address ipv6Address, String uri, HTTPMethodEnum method,
			boolean applyChanges, byte[] data); @Override void sendIPData(Inet6Address ipv6Address, int destPort,
			IPProtocol protocol, byte[] data); @Override void sendIPDataAsync(Inet6Address ipv6Address, int destPort,
			IPProtocol protocol, byte[] data);  }### Answer:
@SuppressWarnings("deprecation") @Test public void testNotSupportedOperationGetAssociationIndicationStatus() throws Exception { exception.expect(UnsupportedOperationException.class); exception.expectMessage(is(equalTo("Operation not supported in Thread protocol."))); threadDevice.getAssociationIndicationStatus(); }