@Test
public void testReadZeroBytesOnEmptyFile() throws Exception {

   JDBCSequentialFile file = (JDBCSequentialFile) factory.createSequentialFile("test.txt");
   file.open();
   try {
      final ByteBuffer readBuffer = ByteBuffer.allocate(0);
      final int bytes = file.read(readBuffer);
      assertEquals(0, bytes);
   } finally {
      file.close();
   }
}