@Test
public void testGetAllAttributesByType() throws Exception {

	Map<AttributeType,Collection<Attribute>> themap = this.provider.getAllAttributesByType();
	assertNotNull(themap);
	assertEquals(2,themap.size());
	
	Collection<Attribute> attrs;
	Attribute attr;
	Iterator<Attribute> iterator;
	
	attrs = themap.get(AttributeType.STRING);
	assertNotNull(attrs);
	assertEquals(3, attrs.size());		
	iterator = attrs.iterator();
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("SOURCE", attr.getName()); //$NON-NLS-1$
   	assertEquals(PHOTOGRAMMETRIE_VALUE, attr.getValue());
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("CATEGORIE", attr.getName()); //$NON-NLS-1$
   	assertEquals("Religieux", attr.getValue()); //$NON-NLS-1$
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("NATURE", attr.getName()); //$NON-NLS-1$
   	assertEquals("Eglise", attr.getValue()); //$NON-NLS-1$
	assertFalse(iterator.hasNext());		
   	
	attrs = themap.get(AttributeType.REAL);
	assertNotNull(attrs);
	assertEquals(1, attrs.size());		
	iterator = attrs.iterator();
   	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("HAUTEUR", attr.getName()); //$NON-NLS-1$
   	assertEquals(15., attr.getValue());
	assertFalse(iterator.hasNext());		
}