### Question:
PostGIS implements VectorDriver<PostGISWorkspace> { @Override public String name() { return "PostGIS"; }  static PostGISWorkspace open(PostGISOpts opts); @Override boolean isEnabled(Messages messages); @Override String name(); @Override List<String> aliases(); @Override Class<PostGISWorkspace> type(); @Override List<Key<? extends Object>> keys(); @Override String family(); @Override boolean canOpen(Map<?, Object> opts, Messages msgs); @Override PostGISWorkspace open(Map<?, Object> opts); @Override boolean canCreate(Map<?, Object> opts, Messages msgs); @Override PostGISWorkspace create(Map<?, Object> opts, Schema schema); @Override Set<Capability> capabilities(); static final Key<String> DB; static final Key<String> SCHEMA; static final Key<String> HOST; static final Key<Integer> PORT; static final Key<String> USER; static final Key<Password> PASSWD; }### Answer:
@Test public void testCursorInsert() throws Exception { VectorDataset states = pg.get("states"); Schema schema = states.schema(); FeatureWriteCursor c = states.append(new VectorQuery()); Feature f = c.next(); GeomBuilder gb = new GeomBuilder(); Geometry g = gb.point(0,0).point().buffer(1).toMultiPolygon(); f.put(schema.geometry().name(), g); f.put("STATE_NAME", "JEOLAND"); c.write(); c.close(); assertEquals(50, states.count(new VectorQuery())); FeatureCursor d = states.read(new VectorQuery().bounds(g.getEnvelopeInternal())); assertTrue(d.hasNext()); assertEquals("JEOLAND", d.next().get("STATE_NAME")); d.close(); }