@Test
public void testMin() throws IllegalArgumentException, NoSuchElementException, IOException {

  final FeatureReader<SimpleFeatureType, SimpleFeature> reader =
      dataStore.getFeatureReader(query, Transaction.AUTO_COMMIT);
  final MinVisitor visitor = new MinVisitor("start", type);
  unwrapDelegatingFeatureReader(reader).getFeatureCollection().accepts(visitor, null);
  assertTrue(visitor.getMin().equals(stime));
}