@Test(dependsOnMethods = "useConnectionPool")
public void useDNSCache() throws InterruptedException, IOException, URISyntaxException {
client.useDNSCache(false);
Response response = client.get("http://www.baidu.com/");
Metrics metrics = response.getMetrics();
Assert.assertTrue(metrics.getDnsLookupCost() > 0);
Response response2 = client.get("http://www.baidu.com/img/baidu_logo.gif");
Metrics metrics2 = response2.getMetrics();
Assert.assertFalse(metrics2.equals(metrics));
Assert.assertTrue(metrics2.getDnsLookupCost() > 0);
}