OAK-1266 - make sure that the test DataSource is closed at the end of the test

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1586296 13f79535-47bb-0310-9956-ffa450edef68
OAK-1266 - make sure that the test DataSource is closed at the end of the test (fix recursion bug and add missing Java 7 method stub(

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1586313 13f79535-47bb-0310-9956-ffa450edef68