DERBY-5133; nightly test failure in derbyall/storeall/storemore/SpaceTable
   backport of revision 1594231 and revision 1594451 from trunk
   converting the test to junit and calling a retry of the problematic selects.


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/branches/10.9@1594754 13f79535-47bb-0310-9956-ffa450edef68