RoleToken extends Token { public String getProxyUser() { return proxyUser; } private  RoleToken(Builder builder);  RoleToken(String signedToken); String getPrincipal(); List<String> getRoles(); String getProxyUser(); boolean getDomainCompleteRoleSet();  }
@Test public void testRoleTokenHost() { RoleToken token = new RoleToken("v=S1;d=coretech;h=host;r=role1,role2;s=signature"); assertEquals(token.getHost(), "host"); assertNull(token.getProxyUser()); }