}
results = (List<?>) queryRunner.query(connection, "SELECT * FROM TEST WHERE TYPE = 2", new ArrayListHandler());
logger.info("Locked records found: " + results.size());
assertTrue(TEST_ROWS >= results.size());
results = (List<?>) queryRunner.query(connection, "SELECT * FROM TEST WHERE TYPE = 1", new ArrayListHandler());
logger.info("Original records found: " + results.size());
assertTrue(TEST_ROWS >= results.size());
assertTrue(System.currentTimeMillis() - t0 < 20000);
Thread.sleep(500);