GeoToolsFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public String getId(Object feature) throws LayerException { SimpleFeature featureAsFeature = asFeature(feature); return featureAsFeature.getID(); } GeoToolsFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); @Override Attribute getAttribute(Object feature, String name); @Override Map<String, Attribute> getAttributes(Object feature); @Override Geometry getGeometry(Object feature); @Override String getId(Object feature); @Override int getSrid(); @Override Object newInstance(); @Override Object newInstance(String id); @Override boolean canHandle(Object feature);  }
@Test public void testGetId() throws Exception { Assert.assertEquals(LAYER_NAME + ".5", featureModel.getId(feature)); }