PermissionHook implements PostValidationHook, AccessControlConstants, PermissionConstants { @Override public String toString() { return "PermissionHook"; } PermissionHook(@NotNull String workspaceName, @NotNull RestrictionProvider restrictionProvider,
                          @NotNull MountInfoProvider mountInfoProvider, @NotNull RootProvider rootProvider,
                          @NotNull TreeProvider treeProvider); @NotNull @Override NodeState processCommit(NodeState before, NodeState after, CommitInfo info); @Override String toString();  }
@Test public void testToString() { PermissionHook h1 = createPermissionHook("wspName"); PermissionHook h2 = new PermissionHook("default", mock(RestrictionProvider.class), mock(MountInfoProvider.class), mock(RootProvider.class), mock(TreeProvider.class)); assertEquals(h1.toString(), h2.toString()); }