TokenConfigurationImpl extends ConfigurationBase implements TokenConfiguration { @NotNull @Override public TokenProvider getTokenProvider(@NotNull Root root) { UserConfiguration uc = getSecurityProvider().getConfiguration(UserConfiguration.class); return new TokenProviderImpl(root, getParameters(), uc, newCredentialsSupport()); } @SuppressWarnings("UnusedDeclaration")  TokenConfigurationImpl();  TokenConfigurationImpl(@NotNull SecurityProvider securityProvider); @Reference(name = "credentialsSupport", cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) @SuppressWarnings("UnusedDeclaration") void bindCredentialsSupport(CredentialsSupport credentialsSupport); @SuppressWarnings("UnusedDeclaration") void unbindCredentialsSupport(CredentialsSupport credentialsSupport); @NotNull @Override String getName(); @NotNull @Override List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker); @NotNull @Override TokenProvider getTokenProvider(@NotNull Root root);  }
@Test public void testGetTokenProvider() { TokenProvider tp = tc.getTokenProvider(root); assertTrue(tp instanceof TokenProviderImpl); }