@Test
public void testGetAllAttributes() throws Exception {

	Collection<Attribute> attrs;
	Iterator<Attribute> iterator;
	Attribute attr;
	
	attrs = this.provider.getAllAttributes();
	assertNotNull(attrs);
	assertEquals(4,attrs.size());
	iterator = attrs.iterator();
	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("HAUTEUR", attr.getName()); //$NON-NLS-1$
   	assertEquals(15., attr.getValue());
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("NATURE", attr.getName()); //$NON-NLS-1$
   	assertEquals("Eglise", attr.getValue()); //$NON-NLS-1$
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("SOURCE", attr.getName()); //$NON-NLS-1$
   	assertEquals(PHOTOGRAMMETRIE_VALUE, attr.getValue());
	assertFalse(iterator.hasNext());
	this.provider.setAttribute("NEWFIELD", 1f); //$NON-NLS-1$
	attrs = this.provider.getAllAttributes();
	assertNotNull(attrs);
	assertEquals(5,attrs.size());
	iterator = attrs.iterator();
	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("HAUTEUR", attr.getName()); //$NON-NLS-1$
   	assertEquals(15., attr.getValue());
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("NATURE", attr.getName()); //$NON-NLS-1$
   	assertEquals("Eglise", attr.getValue()); //$NON-NLS-1$
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("NEWFIELD", attr.getName()); //$NON-NLS-1$
   	assertEquals(1., attr.getValue());
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("SOURCE", attr.getName()); //$NON-NLS-1$
   	assertEquals(PHOTOGRAMMETRIE_VALUE, attr.getValue());
	assertFalse(iterator.hasNext());
	this.provider.removeAttribute("SOURCE"); //$NON-NLS-1$
	attrs = this.provider.getAllAttributes();
	assertNotNull(attrs);
	assertEquals(5,attrs.size());
	iterator = attrs.iterator();
	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("HAUTEUR", attr.getName()); //$NON-NLS-1$
   	assertEquals(15., attr.getValue());
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("NATURE", attr.getName()); //$NON-NLS-1$
   	assertEquals("Eglise", attr.getValue()); //$NON-NLS-1$
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("NEWFIELD", attr.getName()); //$NON-NLS-1$
   	assertEquals(1., attr.getValue());
	assertTrue(iterator.hasNext());
	attr = iterator.next();
	assertEquals("SOURCE", attr.getName()); //$NON-NLS-1$
   	assertEquals(PHOTOGRAMMETRIE_VALUE, attr.getValue());
	assertFalse(iterator.hasNext());
}