### Question:
ApplicationException extends Exception { public Response buildErrorResponse() { return Response.status(errorCode).entity(errorMsg).build(); } ApplicationException(int errorCode, String errorMsg); int getErrorCode(); void setErrorCode(int errorCode); String getErrorMsg(); void setErrorMsg(String errorMsg); Response buildErrorResponse();  }### Answer:
@Test public void testbuildErrorResponse() { assert (application.buildErrorResponse() != null); }