public void testPrimitiveAttributes() throws LayerException {
Map<String, Attribute<?>> attributes = new HashMap<String, Attribute<?>>();
FeatureBean bean = new FeatureBean();
attributes.put("stringAttr", new StringAttribute("s1"));
attributes.put("doubleAttr", new DoubleAttribute(1.23));
attributes.put("longAttr", new LongAttribute(12L));
attributes.put("floatAttr", new FloatAttribute(1.67F));
attributes.put("shortAttr", new ShortAttribute((short) 6));
attributes.put("urlAttr", new UrlAttribute("http://haha"));
service.setAttributes(bean, layerBeans.getLayerInfo().getFeatureInfo(), new DummyMapper(), attributes);
Assert.assertEquals("s1", bean.getStringAttr());