CatalinaAcegiUserRealm adapter = makeAdapter("adaptertest-valid.xml");
CatalinaAcegiUserRealm adapter = makeAdapter( "catalinaAdapterTest-valid.xml");
    public void testAuthenticationUsingByteArrayForCredentials()        throws Exception {        CatalinaAcegiUserRealm adapter = makeAdapter("adaptertest-valid.xml");        byte[] credentials = {'k', 'o', 'a', 'l', 'a'};        Principal result = adapter.authenticate("marissa", credentials);        if (!(result instanceof PrincipalAcegiUserToken)) {            fail("Should have returned PrincipalAcegiUserToken");        }        PrincipalAcegiUserToken castResult = (PrincipalAcegiUserToken) result;        assertEquals("marissa", castResult.getPrincipal());        assertEquals("koala", castResult.getCredentials());        assertEquals("ROLE_TELLER",            castResult.getAuthorities()[0].getAuthority());        assertEquals("ROLE_SUPERVISOR",            castResult.getAuthorities()[1].getAuthority());        assertEquals(ADAPTER_KEY.hashCode(), castResult.getKeyHash());    }