### Question:
ErrorHandler { @ExceptionHandler(IllegalArgumentException.class) @ResponseStatus(HttpStatus.BAD_REQUEST) public void processValidationError(IllegalArgumentException e) { LOGGER.info("Returning HTTP 400 Bad Request", e); }  @ExceptionHandler(IllegalArgumentException.class) @ResponseStatus(HttpStatus.BAD_REQUEST) void processValidationError(IllegalArgumentException e); @ExceptionHandler(Exception.class) @ResponseStatus(HttpStatus.BAD_REQUEST) ResponseEntity<Object> processValidationError(Exception e);  }### Answer:
@Test public void testprocessValidationError() throws Exception { handler.processValidationError(new IllegalArgumentException()); ResponseEntity<Object> response = handler.processValidationError(new Exception()); assertTrue(response.getStatusCode() == HttpStatus.EXPECTATION_FAILED); }