HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override @SuppressWarnings("rawtypes") public Map<String, Attribute> getAttributes(Object feature) throws LayerException { try { Map<String, Attribute> attribs = new HashMap<String, Attribute>(); for (AttributeInfo attribute : getFeatureInfo().getAttributes()) { String name = attribute.getName(); if (!name.equals(getGeometryAttributeName())) { Attribute value = getAttribute(feature, name); attribs.put(name, value); } } return attribs; } catch (Exception e) { throw new LayerException(e, ExceptionCode.HIBERNATE_ATTRIBUTE_ALL_GET_FAILED, feature); } }  @Override void setLayerInfo(VectorLayerInfo layerInfo); @Override Attribute getAttribute(Object feature, String name); @Override @SuppressWarnings("rawtypes") Map<String, Attribute> getAttributes(Object feature); @Override String getId(Object feature); @Override Geometry getGeometry(Object feature); @Override @SuppressWarnings("unchecked") void setAttributes(Object feature, Map<String, Attribute> attributes); @Override void setGeometry(Object feature, Geometry geometry); @Override Object newInstance(); @Override Object newInstance(String id); @Override int getSrid(); @Override String getGeometryAttributeName(); @Override boolean canHandle(Object feature);  }
@Test public void getAttributes() throws Exception { Assert.assertEquals("default-name-1", featureModel.getAttributes(feature1).get(PARAM_TEXT_ATTR).getValue()); }