Unit testing API using a mock of HTTP Client