### Question:
TransmitException extends CommunicationException { public XBeeTransmitStatus getTransmitStatus() { return transmitStatus; } TransmitException(XBeeTransmitStatus transmitStatus);  TransmitException(String message, XBeeTransmitStatus transmitStatus);  TransmitException(String message, Throwable cause, XBeeTransmitStatus transmitStatus); XBeeTransmitStatus getTransmitStatus(); String getTransmitStatusMessage(); @Override String getMessage();  }### Answer:
@Test public final void testGetTransmitStatus() { XBeeTransmitStatus transmitStatus = XBeeTransmitStatus.RESOURCE_ERROR; TransmitException e = new TransmitException(transmitStatus); XBeeTransmitStatus result = e.getTransmitStatus(); assertThat("Created 'TransmitException' does not have the expected transmit status", result, is(equalTo(transmitStatus))); }
@Test public final void testGetTransmitStatusNull() { XBeeTransmitStatus transmitStatus = null; TransmitException e = new TransmitException(transmitStatus); XBeeTransmitStatus result = e.getTransmitStatus(); assertThat("Created 'TransmitException' does not have the expected transmit status", result, is(equalTo(transmitStatus))); }