PrincipalBasedAuthorizationConfiguration extends ConfigurationBase implements AuthorizationConfiguration { @NotNull @Override public List<? extends CommitHook> getCommitHooks(@NotNull String workspaceName) { return Collections.emptyList(); } @SuppressWarnings("UnusedDeclaration")  PrincipalBasedAuthorizationConfiguration(); @NotNull @Override AccessControlManager getAccessControlManager(@NotNull Root root, @NotNull NamePathMapper namePathMapper); @NotNull @Override RestrictionProvider getRestrictionProvider(); @NotNull @Override PermissionProvider getPermissionProvider(@NotNull Root root, @NotNull String workspaceName, @NotNull Set<Principal> principals); @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 List<ProtectedItemImporter> getProtectedItemImporters(); @NotNull @Override Context getContext(); @Activate void activate(@NotNull BundleContext context, @NotNull Configuration configuration); @Modified void modified(@NotNull BundleContext context, @NotNull Configuration configuration); @Deactivate void deactivate(@NotNull BundleContext context, @NotNull Configuration configuration); @Reference(name = "filterProvider", cardinality = ReferenceCardinality.MANDATORY) void bindFilterProvider(@NotNull FilterProvider filterProvider); void unbindFilterProvider(@NotNull FilterProvider filterProvider); @Reference(name = "mountInfoProvider", cardinality = ReferenceCardinality.MANDATORY) void bindMountInfoProvider(@NotNull MountInfoProvider mountInfoProvider); void unbindMountInfoProvider(@NotNull MountInfoProvider mountInfoProvider);  }
@Test public void testGetCommitHooks() { assertTrue(new PrincipalBasedAuthorizationConfiguration().getCommitHooks("wspName").isEmpty()); }