The test code as I currently have it is in the pull request.

I'm doing a quick rewrite to make the request the same as the client I'm using against my actual service.