Fixes #39050

Comment From: wilkinsona

When we merge this, we should look at either using AssertJ's extracting rather than ReflectionUtils or we should test it by trying to make more than the permitted number of connections.

Comment From: mhalbritter

Thank you!