My current predicament is that we are returning a 500 for missing parameters, a bug as not providing a path parameter is not an internal server error, but a bad request. Now whilst I can fix the issue at hand, I cannot test is via rest-assured. The current behaviour of rest-assured, would be the same as junit not allowing you to pass in a null parameter. Yes, I could fix it without automated tests, but that's a waste of future developer/QA time. Surely it's the job of a testing framework to allow you to test all eventualities? Also, manipulating the values that I pass in, re the trimToNull is surely not the job of a testing framework?