PrivilegeConfigurationImpl extends ConfigurationBase implements PrivilegeConfiguration { @NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) { return Collections.singletonList(new PrivilegeValidatorProvider(getRootProvider(), getTreeProvider())); }  @NotNull @Override PrivilegeManager getPrivilegeManager(Root root, NamePathMapper namePathMapper); @NotNull @Override String getName(); @NotNull @Override RepositoryInitializer getRepositoryInitializer(); @NotNull @Override List<? extends CommitHook> getCommitHooks(@NotNull String workspaceName); @NotNull @Override List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker); @NotNull @Override Context getContext();  }
@Test public void testGetValidators() { List<? extends ValidatorProvider> l = configuration.getValidators("wspName", ImmutableSet.<Principal>of(), new MoveTracker()); assertEquals(1, l.size()); assertTrue(l.get(0) instanceof PrivilegeValidatorProvider); }