@Test
public void testReadOutOfBoundsOnEmptyFile() throws Exception {

   JDBCSequentialFile file = (JDBCSequentialFile) factory.createSequentialFile("test.txt");
   file.open();
   try {
      final ByteBuffer readBuffer = ByteBuffer.allocate(1);
      file.position(1);
      final int bytes = file.read(readBuffer);
      assertTrue("bytes read should be < 0", bytes < 0);
   } finally {
      file.close();
   }
}