@Test
public void testIsRoleToken() {

    String domain = "AuthorizerRoleToken";
    ZMSAuthorizer authorizer = new ZMSAuthorizer(zmsUrl, domain);
    
    assertTrue(authorizer.isRoleToken("v=Z1;d=domain;r=roles;s=signature"));
    assertTrue(authorizer.isRoleToken("d=domain;r=roles;v=Z1;s=signature"));
    assertFalse(authorizer.isRoleToken("v=S1;d=domain;n=server;s=signature"));
    assertFalse(authorizer.isRoleToken("d=domain;r=roles;s=signature"));
    assertFalse(authorizer.isRoleToken("vZ1"));
    authorizer.close();
}