GeoToolsFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public Map<String, Attribute> getAttributes(Object feature) throws LayerException { SimpleFeature f = asFeature(feature); HashMap<String, Attribute> attribs = new HashMap<String, Attribute>(); for (AbstractAttributeInfo attributeInfo : getAttributeInfoMap().values()) { String name = attributeInfo.getName(); attribs.put(name, convertAttribute(f.getAttribute(name), name)); } return attribs; } 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 testGetAttributes() throws Exception { Assert.assertEquals("Pasay City", featureModel.getAttributes(feature).get(ATTRIBUTE_NAME).getValue()); }