Assert.assertNotNull(type);
Assert.assertTrue(type.getAttributeCount() > 0);
}
public void testCountFeatures() throws IOException {
GeoRestDataStoreFactory factory = new GeoRestDataStoreFactory();
DataStore ds = factory.createDataStore(createParams());
GeoRestFeatureSource source = (GeoRestFeatureSource) ds.getFeatureSource(FEATURESOURCE);
int count = source.getCount(new Query(FEATURESOURCE, Filter.INCLUDE));
Assert.assertTrue(count > 0);
BBOX bbox = FF.bbox("geometry", 0, 0, 10, 10, "EPSG:4326");
count = source.getCount(new Query(FEATURESOURCE, bbox, 5, new String[] {}, ""));