ListMetadataResultSet implements MetadataResultSet<ISORecord> { @Override public boolean next() throws MetadataStoreException { return iterator.hasNext(); } ListMetadataResultSet( List<ISORecord> foundRecords ); @Override void close(); @Override boolean next(); @Override void skip( int rows ); @Override synchronized int getRemaining(); @Override synchronized ISORecord getRecord();  }
@Test public void testNext() throws Exception { ListMetadataResultSet resultSet = new ListMetadataResultSet( getAllRecords() ); assertTrue( resultSet.next() ); assertTrue( resultSet.next() ); assertTrue( resultSet.next() ); assertNotNull( resultSet.getRecord() ); assertTrue( resultSet.next() ); assertTrue( resultSet.next() ); }