}
//测试情况8,测试存在合法的认证处理器的情况,但是凭据转换器列表不为空,但是集合中的元素不为空,认证后处理器对象不是空。
handler = Mockito.mock(AuthenticationHandler.class);
Mockito.when(handler.supports(credential)).thenReturn(true);
Mockito.when(handler.authenticate(credential)).thenReturn(true);
resolver = Mockito.mock(CredentialToPrincipalResolver.class);
principal = Mockito.mock(Principal.class);
Mockito.when(resolver.supports(credential)).thenReturn(true);
Mockito.when(resolver.resolvePrincipal(credential)).thenReturn(principal);
AuthenticationPostHandler authenticationPostHandler = Mockito.mock(AuthenticationPostHandler.class);