It's now moved from InvalidOperationException to UnsupportedMediaTypeException. Fixed it on unit tests