Fixes DNSJavaTCPClientImplTest to run on Mac OS X
Adds patch method to OAuthSampler