@Test
public void testPostInstanceRefreshRequest() {

    Principal principal = SimplePrincipal.create("user_domain", "user",
            "auth_creds", PRINCIPAL_AUTHORITY);
    ZTSRDLClientMock ztsClientMock = new ZTSRDLClientMock();
    ZTSClient client = new ZTSClient("http://localhost:4080", principal);
    client.setZTSRDLGeneratedClient(ztsClientMock);
    InstanceRefreshRequest req = new InstanceRefreshRequest().setExpiryTime(600);
    Identity identity = client.postInstanceRefreshRequest("coretech", "unit", req);
    assertNotNull(identity);
    assertNotNull(identity.getServiceToken());
    client.close();
}