Mock RestTemplate call rreturns HTTP 500 I have the following controller class in my Spring Boot app.