VersionablePathHook implements CommitHook { @Override public String toString() { return "VersionablePathHook : workspaceName = " + workspaceName; } VersionablePathHook(@NotNull String workspaceName, @NotNull ProviderCtx providerCtx); @NotNull @Override NodeState processCommit(
            NodeState before, NodeState after, CommitInfo info); @Override String toString();  }
@Test public void testToString() { VersionablePathHook h1 = new VersionablePathHook("anyWspName", ctx); VersionablePathHook h2 = new VersionablePathHook("anotherWspName", ctx); assertNotEquals(h1.toString(), h2.toString()); assertEquals(h1.toString(), new VersionablePathHook("anyWspName", mock(ProviderCtx.class)).toString()); }