### Question:
GlobalErrorHandler { @ExceptionHandler(Exception.class) public ResponseEntity<String> handleException(@Nonnull final Exception exception) { LOG.error("Internal server error", exception); return new ResponseEntity<>(exception.getMessage(), INTERNAL_SERVER_ERROR); }  @ExceptionHandler(Exception.class) ResponseEntity<String> handleException(@Nonnull final Exception exception);  }### Answer:
@Test public void testHandleException() { GlobalErrorHandler handler = new GlobalErrorHandler(); final ResponseEntity<String> responseEntity = handler.handleException(new RuntimeException("Test")); assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR); assertThat(responseEntity.getBody()).isEqualTo("Test"); }