assertEquals(makeUserDetails().getUsername(), token.getUserDetails().getUsername());
    public void testGetters() {        // Build the proxy list returned in the ticket from CAS        List proxyList = new Vector();        proxyList.add("https://localhost/newPortal/j_acegi_cas_security_check");        CasAuthenticationToken token = new CasAuthenticationToken("key",                "Test", "Password",                new GrantedAuthority[] {new GrantedAuthorityImpl("ROLE_ONE"), new GrantedAuthorityImpl(                        "ROLE_TWO")}, makeUserDetails(), proxyList,                "PGTIOU-0-R0zlgrl4pdAQwBvJWO3vnNpevwqStbSGcq3vKB2SqSFFRnjPHt");        assertEquals("key".hashCode(), token.getKeyHash());        assertEquals("Test", token.getPrincipal());        assertEquals("Password", token.getCredentials());        assertEquals("ROLE_ONE", token.getAuthorities()[0].getAuthority());        assertEquals("ROLE_TWO", token.getAuthorities()[1].getAuthority());        assertEquals("PGTIOU-0-R0zlgrl4pdAQwBvJWO3vnNpevwqStbSGcq3vKB2SqSFFRnjPHt",            token.getProxyGrantingTicketIou());        assertEquals(proxyList, token.getProxyList());    }