Fix HTTP resource leaks, dedupe service code, add test coverage
...
- Close CloseableHttpResponse via try-with-resources in all services
and BaseService.debug() to stop connection-pool leaks.
- Move duplicated header-building into BaseService.generateAuthHeader/
generateJsonHeaders, removing per-service copies.
- Use HttpStatusCode enum instead of magic numbers in OauthService;
add checkForError() so unexpected non-2xx responses fail clearly
instead of falling into JSON parsing.
- Cache a single ObjectMapper in BaseService instead of constructing
one per parse call.
- Redact access_token before storing OAuth responses in Debug objects.
- Fix typos in public params (cliendId, adderss) and a mislabeled
ServiceUtils parameter.
- Fix RateResponseTest loading the wrong fixture (tracking-response.json
instead of rate-response.json) and assert real field values.
- Migrate existing tests to JUnit 5; add mocked-HttpClient tests for
every service (status-code branches), plus tests for HttpStatusCode,
RateIndicatorUtils, ServiceUtils, and AuthToken deserialization.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>