@Test
public void testGetFeatureDescriptors() {

    ELContext elContext = createMock(ELContext.class);
    Request request = createMock(Request.class);
    expect(elContext.getContext(Request.class)).andReturn(request);
    expect(request.getAvailableScopes()).andReturn(Arrays.asList(new String[] {"one", "two"}));
    replay(elContext, request);
    assertFalse(resolver.getFeatureDescriptors(elContext, new Integer(1)).hasNext());
    Iterator<FeatureDescriptor> descriptors = resolver.getFeatureDescriptors(elContext, null);
    FeatureDescriptor descriptor = descriptors.next();
    assertEquals("oneScope", descriptor.getName());
    descriptor = descriptors.next();
    assertEquals("twoScope", descriptor.getName());
    assertFalse(descriptors.hasNext());
    verify(elContext, request);
}