@Test
public void getAttributeManyToOne() throws Exception {

	DateFormat format = new SimpleDateFormat("dd/MM/yyyy");
	Date date;
	try {
		date = format.parse("01/01/2009");
	} catch (ParseException e) {
		date = new Date();
	}
	Object value = featureModel.getAttribute(feature1, PARAM_MANY_TO_ONE);
	Assert.assertTrue(value instanceof ManyToOneAttribute);
	Assert.assertTrue(((ManyToOneAttribute) value).isEmpty() == false);
	Assert.assertEquals("manyToOne-1", featureModel.getAttribute(feature1,
			PARAM_MANY_TO_ONE + HibernateLayerUtil.SEPARATOR + PARAM_TEXT_ATTR).getValue());
	Assert.assertEquals(100, featureModel.getAttribute(feature1,
			PARAM_MANY_TO_ONE + HibernateLayerUtil.SEPARATOR + PARAM_INT_ATTR).getValue());
	Assert.assertEquals(100.0f, featureModel.getAttribute(feature1,
			PARAM_MANY_TO_ONE + HibernateLayerUtil.SEPARATOR + PARAM_FLOAT_ATTR).getValue());
	Assert.assertEquals(100.0, featureModel.getAttribute(feature1,
			PARAM_MANY_TO_ONE + HibernateLayerUtil.SEPARATOR + PARAM_DOUBLE_ATTR).getValue());
	Assert.assertEquals(true, featureModel.getAttribute(feature1,
			PARAM_MANY_TO_ONE + HibernateLayerUtil.SEPARATOR + PARAM_BOOLEAN_ATTR).getValue());
	Assert.assertEquals(date, featureModel.getAttribute(feature1,
			PARAM_MANY_TO_ONE + HibernateLayerUtil.SEPARATOR + PARAM_DATE_ATTR).getValue());
}