### Question:
ThreadDevice extends IPv6Device { public ThreadAssociationIndicationStatus getThreadAssociationIndicationStatus() throws TimeoutException, XBeeException { byte[] associationIndicationValue = getParameter("AI"); return ThreadAssociationIndicationStatus.get(ByteUtils.byteArrayToInt(associationIndicationValue)); } 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:
@Test public void testThreadAssociationIndicationStatus() throws Exception { Mockito.doReturn(RESPONSE_AI).when(threadDevice).getParameter(PARAMETER_AI); assertEquals(validThreadAIStatus, threadDevice.getThreadAssociationIndicationStatus()); }