[hibernate-dev] Handling connections properly during testing with Java 1.8