}
@Test
public void testUnsuccessfulPingTaskRun() throws Exception {
HttpTestServer testServer = new HttpTestServer(18081, true);
testServer.run();
PingTask task = new PingTask(
clusterService, clusterIdService, httpServerTransport, "http://localhost:18081/");
task.run();
assertThat(testServer.responses.size(), is(1));
task.run();