@Test
public void testGetFeatureDescriptorsELContextObject() {

    replay(beanElResolver);
    assertNull(resolver.getFeatureDescriptors(null, new Integer(1)));
    Map<String, PropertyDescriptor> expected = new LinkedHashMap<String, PropertyDescriptor>();
    ClassUtil.collectBeanInfo(Request.class, expected);
    ClassUtil.collectBeanInfo(ApplicationContext.class, expected);
    Iterator<FeatureDescriptor> featureIt = resolver.getFeatureDescriptors(
            null, null);
    Iterator<? extends FeatureDescriptor> expectedIt = expected.values().iterator();
    while (featureIt.hasNext() && expectedIt.hasNext()) {
        assertEquals("The feature is not the same", expectedIt.next(),
                featureIt.next());
    }
    assertTrue("The feature descriptors are not of the same size",
            !featureIt.hasNext() && !expectedIt.hasNext());
    verify(beanElResolver);
}