@Test
public void apiGet_FailWithNullResponse() throws Exception {

    try {
        RangerRESTClient restClient = mock(RangerRESTClient.class);
        RangerClient     client     = new RangerClient(restClient);
        when(restClient.get(anyString(), any())).thenReturn(null);
        client.getService(1L);
        Assert.fail("supposed to fail with RangerServiceException");
    } catch(RangerServiceException excp) {
        Assert.assertTrue(excp.getMessage().contains("statusCode=null"));
        Assert.assertTrue(excp.getMessage().contains("status=null"));
    }
}