### Question:
ApplicationException extends Exception { public ApplicationException(int errorCode, String errorMsg) { this.errorCode = errorCode; this.errorMsg = errorMsg; } ApplicationException(int errorCode, String errorMsg); int getErrorCode(); void setErrorCode(int errorCode); String getErrorMsg(); void setErrorMsg(String errorMsg); Response buildErrorResponse();  }### Answer:
@Test public void testApplicationException() { application.setErrorCode(500); application.setErrorMsg("ErrorMsg"); assertEquals(application.getErrorCode(), 500); assertEquals(application.getErrorMsg(), "ErrorMsg"); }