Use mockwebserver instead of real server for test cases.