Spring Boot: How to Deal With That Nasty 415 Response Code When Running MockMvc Unit Tests If you're stumped about how to deal with a 415 response code from your Spring Boot unit tests, you've come to the right place.