The test implementation was throwing an exception instead of just returning the response and letting the caller handle it.