@Test
public void testGetRoleTokenCacheKey() {

    Principal principal = SimplePrincipal.create("user_domain", "user",
            "auth_creds", PRINCIPAL_AUTHORITY);
    ZTSClient client = new ZTSClient("http://localhost:4080/", principal);
    assertEquals(client.getRoleTokenCacheKey("coretech", "Role1", "proxy"),
            "p=user_domain.user;d=coretech;r=Role1;u=proxy");
    client.close();
}