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());
Assert.assertEquals(1.23, bean.getDoubleAttr(), 0.0001);
Assert.assertEquals(12L, bean.getLongAttr().longValue());
Assert.assertEquals(1.67F, bean.getFloatAttr(), 0.0001);