@Test
public void testNodesInfoExceptionUsesBootstrapServerList() throws Exception {

    NodeChecker nodeChecker = new NodeChecker(jestClient, clientConfig);
    when(jestClient.execute(isA(Action.class))).thenThrow(Exception.class);
    nodeChecker.runOneIteration();
    verify(jestClient).execute(isA(Action.class));
    ArgumentCaptor<LinkedHashSet> argument = ArgumentCaptor.forClass(LinkedHashSet.class);
    verify(jestClient).setServers(argument.capture());
    verifyNoMoreInteractions(jestClient);
    Set servers = argument.getValue();
    assertEquals(1, servers.size());
    assertEquals("http://localhost:9200", servers.iterator().next());
}