INT-3503 equals & hashCode for ToStringFriendlyJN

JIRA: https://jira.spring.io/browse/INT-3503

**Cherry-pick to 4.0.x**

PR Comments and test