ExternalPrincipalConfiguration extends ConfigurationBase implements PrincipalConfiguration { @NotNull @Override public RepositoryInitializer getRepositoryInitializer() { return new ExternalIdentityRepositoryInitializer(protectedExternalIds()); } @SuppressWarnings("UnusedDeclaration")  ExternalPrincipalConfiguration();  ExternalPrincipalConfiguration(SecurityProvider securityProvider); @NotNull @Override PrincipalManager getPrincipalManager(Root root, NamePathMapper namePathMapper); @NotNull @Override PrincipalProvider getPrincipalProvider(Root root, NamePathMapper namePathMapper); @NotNull @Override String getName(); @NotNull @Override RepositoryInitializer getRepositoryInitializer(); @NotNull @Override List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker); @NotNull @Override List<ProtectedItemImporter> getProtectedItemImporters(); @NotNull @Override List<ThreeWayConflictHandler> getConflictHandlers();  }
@Test public void testGetRepositoryInitializer() { assertTrue(externalPrincipalConfiguration.getRepositoryInitializer() instanceof ExternalIdentityRepositoryInitializer); enable(); assertTrue(externalPrincipalConfiguration.getRepositoryInitializer() instanceof ExternalIdentityRepositoryInitializer); }