private PrincipalResolutionContext buildPrincipalResolutionContext(final PersonDirectoryPrincipalResolverProperties... properties) {
        return PersonDirectoryPrincipalResolver.buildPrincipalResolutionContext(
            applicationContext,
            PrincipalFactoryUtils.newPrincipalFactory(),
            new StubPersonAttributeDao(),
            CoreAuthenticationUtils.getAttributeMerger(PrincipalAttributesCoreProperties.MergingStrategyTypes.ADD),
            servicesManager,
            attributeDefinitionStore,
            attributeRepositoryResolver,
            properties);
    }
Test cases for {@link PersonDirectoryPrincipalResolver}.

@author Misagh Moayyed
@since 4.2
support/cas-server-support-person-directory-core/src/test/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolverTests.java