ScopeELResolver extends ELResolver { @Override public Class<?> getCommonPropertyType(ELContext context, Object base) { if (base != null) { return null; } return Map.class; }  @Override Class<?> getCommonPropertyType(ELContext context, Object base); @Override Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context,
            Object base); @Override Class<?> getType(ELContext context, Object base, Object property); @Override Object getValue(ELContext context, Object base, Object property); @Override boolean isReadOnly(ELContext context, Object base, Object property); @Override void setValue(ELContext context, Object base, Object property,
            Object value);  }
@Test public void testGetCommonPropertyType() { ELContext elContext = createMock(ELContext.class); replay(elContext); assertNull(resolver.getCommonPropertyType(elContext, new Integer(1))); assertEquals(Map.class, resolver.getCommonPropertyType(elContext, null)); verify(elContext); }