SimpleFeatureNode extends ProductNode { public final void setDefaultGeometry(Object geometry) { setSimpleFeatureAttribute(simpleFeature.getFeatureType().getGeometryDescriptor().getLocalName(), geometry); } SimpleFeatureNode(SimpleFeature simpleFeature);   SimpleFeatureNode(SimpleFeature simpleFeature, String description); SimpleFeature getSimpleFeature(); @Override long getRawStorageSize(ProductSubsetDef subsetDef); @Override void acceptVisitor(ProductVisitor visitor); final Object getSimpleFeatureAttribute(String name); final void setSimpleFeatureAttribute(String name, Object value); final void setDefaultGeometry(Object geometry); final Object getDefaultGeometry(); void fireSimpleFeatureChanged();  }
@Test public void setDefaultGeometry() { final Geometry geometry = newGeometry(new Rectangle2D.Double(0.0, 0.0, 2.0, 2.0)); simpleFeatureNode.setDefaultGeometry(geometry); assertSame(geometry, simpleFeatureNode.getDefaultGeometry()); assertSame(geometry, simpleFeatureNode.getSimpleFeatureAttribute(ATTRIBUTE_NAME_GROUND_SHAPE)); assertEquals(ATTRIBUTE_NAME_GROUND_SHAPE, eventTrace.toString()); }