@Test
public void apiGet_ServiceUnavailable() throws Exception {

    try {
        RangerRESTClient restClient = mock(RangerRESTClient.class);
        ClientResponse   response   = mock(ClientResponse.class);
        RangerClient     client     = new RangerClient(restClient);
        when(restClient.get(anyString(), any())).thenReturn(response);
        when(response.getStatus()).thenReturn(ClientResponse.Status.SERVICE_UNAVAILABLE.getStatusCode());
        RangerService ret = client.getService(1L);
        Assert.assertNull(ret);
    } catch(RangerServiceException excp){
        Assert.fail("Not expected to fail! Found exception: " + excp);
    }
}