Fix RestClient connection leaks when it throws ClientException upon server throttle. Enhanced JUnit tests for RestClient retries.
Added missing JUnit test.
Merge pull request #56 from allenxwang/cp

Fix RestClient connection leaks when it throws ClientException upon server throttle. Enhanced JUnit tests for RestClient retries.