JcrAllCommitHook implements PostValidationHook, PrivilegeConstants { @Override public String toString() { return "JcrAllCommitHook"; }  @NotNull @Override NodeState processCommit(
            NodeState before, NodeState after, CommitInfo info); @Override String toString();  }
@Test public void testToString() { assertEquals("JcrAllCommitHook", hook.toString()); }