HttpClient client = new HttpClient("http://bogus");
FakeClient fakeClient = new FakeClient();
client.setClient(fakeClient);
client.setRetryCount(10);
MetricBuilder builder = MetricBuilder.getInstance();
builder.addMetric("newMetric").addDataPoint(10, 10).addTag("host", "server1");
try
{
client.pushMetrics(builder);
fail("IOException should have been thrown");