NEXUS-6220: UT for reuseConnectionsNeeded method