Revert "Remove redundant exception conversions"

This reverts commit cd54a873acacca815eec72aa195f014f58f4aa7e.

The conversion around new_connection is not redundant: if connection
fails due to a network issue, misconfiguration or authentication failure,
we don't want Ruby developers to deal with Java exceptions.
Remove a test that is not relevant any more