Test is fairly simple and works fine in legacy sqlite mode
try
(SQLiteDatabase db = createDatabase
(PlatformSafeSQLiteCursor.
createFactory(null
));
SQLiteCursor cursor = ObjectUtils.
cast(db.query
("test_table", null, null, null, null, null, null
))) {
// Check that the safe cursor validates the position.
assertThat(cursor.onMove
(0, 20
))
.isFalse
();
}