ShapeInMemFeatureModel 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 (Map.Entry<String, AbstractAttributeInfo> entry : getAttributeInfoMap().entrySet()) { String name = entry.getKey(); try { attribs.put(name, converterService.toDto(f.getAttribute(name), entry.getValue())); } catch (GeomajasException e) { throw new LayerException(e); } } return attribs; } ShapeInMemFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); @Override void setLayerInfo(VectorLayerInfo vectorLayerInfo); @Override Attribute getAttribute(Object feature, String name); @Override Map<String, Attribute> getAttributes(Object feature); @Override int getSrid(); @Override Geometry getGeometry(Object feature); @Override String getId(Object feature); @Override Object newInstance(); @Override Object newInstance(String id); @Override void setGeometry(Object feature, Geometry geometry); @Override boolean canHandle(Object feature);  }
@Test public void getAttributes() throws Exception { Assert.assertEquals("Pasay City", featureModel.getAttributes(feature).get(ATTRIBUTE_NAME).getValue()); }