*
* @throws SQLException
*/
@Test
public void meta_result_set_movement_03() throws SQLException {
MetaResultSet results = createMetaResultSet(1);
Assert.assertTrue(results.isBeforeFirst());
// Move forwards
Assert.assertTrue(results.next());
Assert.assertTrue(results.isFirst());
Assert.assertFalse(results.isBeforeFirst());
Assert.assertTrue(results.isLast());
Assert.assertFalse(results.isAfterLast());
// Move to end
Assert.assertFalse(results.next());
Assert.assertTrue(results.isAfterLast());
// Move backwards
Assert.assertTrue(results.previous());
Assert.assertTrue(results.isFirst());
Assert.assertFalse(results.isBeforeFirst());
Assert.assertTrue(results.isLast());
Assert.assertFalse(results.isAfterLast());
results.close();
Assert.assertTrue(results.isClosed());
}