Allow overriding of HTTP method

OK, I had to reformat the whole SparkTestUtil file in IntelliJ (it had tabs in it from the original repo, which is why the spacing was all wonky.)

Sorry about that.