@Test
public void testFindAllInSchema() throws Exception 
{

    List<MetadataField> found = metadataFieldService.findAllInSchema(context, metadataSchemaService.find(context, MetadataSchema.DC_SCHEMA));
    assertThat("testFindAllInSchema 0",found, notNullValue());
    assertTrue("testFindAllInSchema 1",found.size() >= 1);
    assertTrue("testFindAllInSchema 2",found.size() <= metadataFieldService.findAll(context).size());
    boolean added = false;
    for(MetadataField mdf: found)
    {
        if(mdf.equals(mf))
        {
            added = true;
        }
    }        
    assertTrue("testFindAllInSchema 3",added);
}