@Test
public void testFindOrCreateEntity() throws LayerException {

	BeanEntityMapper mapper = new BeanEntityMapper();
	Entity entity = mapper.findOrCreateEntity("org.geomajas.layer.bean.FeatureBean", null);
	entity.setAttribute("longAttr", 6L);
	Object object = ((BeanEntity)entity).getBean(); 
	Assert.assertTrue(object instanceof FeatureBean);
	Assert.assertEquals(new Long(6L), ((FeatureBean)object).getLongAttr());
}