@Test
public void testGetAllIndexEntries() throws SQLException {

    Connection connection = null;
    try {
        ConnectionManager connectionManager = temporaryFileDatabase.getConnectionManager(true);
        initWithTestData(connectionManager);
        List<DBQueries.Row<Integer, String>> expectedRows = new ArrayList<DBQueries.Row<Integer, String>>(2);
        expectedRows.add(new DBQueries.Row<Integer, String>(1, "abs"));
        expectedRows.add(new DBQueries.Row<Integer, String>(1, "gps"));
        expectedRows.add(new DBQueries.Row<Integer, String>(2, "airbags"));
        expectedRows.add(new DBQueries.Row<Integer, String>(3, "abs"));
        connection = connectionManager.getConnection(null, noQueryOptions());
        ResultSet resultSet = DBQueries.getAllIndexEntries( NAME, connection);
        assertResultSetOrderAgnostic(resultSet, expectedRows);
    }finally {
        DBUtils.closeQuietly(connection);
    }
}