mock-http-server facilitates testing Java HTTP client code. See build.gradle for dependencies info, build with gradle build and test with gradle test. See src/test for example usage.