PrincipalConfigurationImpl extends ConfigurationBase implements PrincipalConfiguration { @NotNull @Override public PrincipalManager getPrincipalManager(Root root, NamePathMapper namePathMapper) { PrincipalProvider principalProvider = getPrincipalProvider(root, namePathMapper); return new PrincipalManagerImpl(principalProvider); } @SuppressWarnings("UnusedDeclaration")  PrincipalConfigurationImpl();  PrincipalConfigurationImpl(SecurityProvider securityProvider); @NotNull @Override PrincipalManager getPrincipalManager(Root root, NamePathMapper namePathMapper); @NotNull @Override PrincipalProvider getPrincipalProvider(Root root, NamePathMapper namePathMapper); @NotNull @Override String getName();  }
@Test(expected = IllegalStateException.class) public void testGetPrincipalManager() { pc1.getPrincipalManager(root, NamePathMapper.DEFAULT); }
@Test public void testGetPrincipalManager2() { pc1.setSecurityProvider(getSecurityProvider()); PrincipalManager pm = pc1.getPrincipalManager(root, NamePathMapper.DEFAULT); assertNotNull(pm); assertTrue(pm instanceof PrincipalManagerImpl); }
@Test public void testGetPrincipalManager3() { PrincipalManager pm = pc2.getPrincipalManager(root, NamePathMapper.DEFAULT); assertNotNull(pm); assertTrue(pm instanceof PrincipalManagerImpl); }