A fake URL connection sounds a bit easier than jetty for a single test, although I haven't created one before so I don't know how simple it actually is.