clusterIdFuture.set(new ClusterId(UUID.randomUUID()));
when(clusterIdService.clusterId()).thenReturn(clusterIdFuture);
when(clusterService.localNode()).thenReturn(discoveryNode);
when(discoveryNode.isMasterNode()).thenReturn(true);
when(httpServerTransport.boundAddress()).thenReturn(boundAddress);
when(boundAddress.publishAddress()).thenReturn(transportAddress);
}
@Test
public void testSuccessfulPingTaskRun() throws Exception {
HttpTestServer testServer = new HttpTestServer(18080, false);