@Test(expected = BadRequestException.class)
 public void testRetrieveClusterJsonWhenClusterJsonIsNull() throws HttpResponseException {
   // GIVEN
   doReturn(ambariClient)
       .when(ambariClientProvider)
       .getAmbariClient(any(TLSClientConfig.class), any(String.class), any(String.class));
   given(ambariClient.getClusterAsJson()).willReturn(null);
   // WHEN
   underTest.getClusterJson("123.12.3.4", 1L);
 }