@Test
public void apiGet_Success() throws Exception {

    try {
        RangerRESTClient restClient = mock(RangerRESTClient.class);
        ClientResponse   response   = mock(ClientResponse.class);
        RangerClient     client     = new RangerClient(restClient);
        RangerService    service    = new RangerService("testType", "testService", "MockedService", "testTag", new HashMap<>());
        when(restClient.get(anyString(), any())).thenReturn(response);
        when(response.getStatus()).thenReturn(GET_TEST_API.getExpectedStatus().getStatusCode());
        when(response.getEntity(RangerService.class)).thenReturn(service);
        RangerService ret = client.getService(service.getName());
        Assert.assertNotNull(ret);
        Assert.assertEquals(ret.getName(), service.getName());
    } catch(RangerServiceException excp){
        Assert.fail("Not expected to fail! Found exception: " + excp);
    }
}