### Question:
ATCommandException extends CommunicationException { public ATCommandStatus getCommandStatus() { return atCommandStatus; } ATCommandException(ATCommandStatus atCommandStatus);  ATCommandException(String message, ATCommandStatus atCommandStatus);  ATCommandException(String message, Throwable cause, ATCommandStatus atCommandStatus); ATCommandStatus getCommandStatus(); String getCommandStatusMessage(); @Override String getMessage();  }### Answer:
@Test public final void testGetCommandStatus() { ATCommandStatus atCommandStatus = ATCommandStatus.INVALID_COMMAND; ATCommandException e = new ATCommandException(atCommandStatus); ATCommandStatus result = e.getCommandStatus(); assertThat("Created 'ATCommandException' does not have the expected AT command status", result, is(equalTo(atCommandStatus))); }
@Test public final void testGetCommandStatusNull() { ATCommandStatus atCommandStatus = null; ATCommandException e = new ATCommandException(atCommandStatus); ATCommandStatus result = e.getCommandStatus(); assertThat("Created 'ATCommandException' does not have the expected AT command status", result, is(equalTo(atCommandStatus))); }