@Test(expected = AmbariSolrCloudClientException.class)
public void testRetries() throws Exception {

  // GIVEN
  expect(mockedSolrClient.request(anyObject(CollectionAdminRequest.class), anyString())).andThrow(new RuntimeException("ex")).times(2);
  replay(mockedSolrClient);
  // WHEN
  underTest.listCollections();
}