    @Test(expected = AuthenticationCredentialsNotFoundException.class)
    public void testResolveUsernameUnknownPricipalClass() throws Exception {

        directAccessGrantAuthenticationProvider.resolveUsername(new Object());
    }