@Test
public void testGetServiceIdentityList() {

    Principal principal = SimplePrincipal.create("user_domain", "user",
            "auth_creds", PRINCIPAL_AUTHORITY);
    ZTSRDLClientMock ztsClientMock = new ZTSRDLClientMock();
    ZTSClient client = new ZTSClient("http://localhost:4080", principal);
    ZTSClient.cancelPrefetch();
    client.setZTSRDLGeneratedClient(ztsClientMock);
    ServiceIdentityList serviceIdentityList = client.getServiceIdentityList("coretech");
    assertEquals(serviceIdentityList.getNames(), Collections.singletonList("storage"));
    try {
        client.getServiceIdentityList("unknown.domain");
        fail();
    } catch (ZTSClientException ex) {
        assertEquals(ex.getCode(), 404);
    }
    client.close();
}