### Question:
FeignExceptionHandler { public static FeignException getException(HttpStatus httpStatus, String message) { return FeignException.errorStatus(message, error(httpStatus)); } private  FeignExceptionHandler(); static TppMessage getFailureMessage(FeignException e, MessageErrorCode errorCode); static TppMessage getFailureMessage(FeignException e, MessageErrorCode errorCode, String errorMessageAspsp); static FeignException getException(HttpStatus httpStatus, String message);  }### Answer:
@Test void getException() { FeignException feignException = FeignExceptionHandler.getException(HttpStatus.BAD_REQUEST, "message1"); assertEquals(HttpStatus.BAD_REQUEST.value(), feignException.status()); assertEquals("status 400 reading message1", feignException.getMessage()); feignException = FeignExceptionHandler.getException(HttpStatus.NOT_FOUND, "message2"); assertEquals(HttpStatus.NOT_FOUND.value(), feignException.status()); assertEquals("status 404 reading message2", feignException.getMessage()); feignException = FeignExceptionHandler.getException(HttpStatus.UNAUTHORIZED, "message3"); assertEquals(HttpStatus.UNAUTHORIZED.value(), feignException.status()); assertEquals("status 401 reading message3", feignException.getMessage()); }