ScopeELResolver extends ELResolver { @Override public boolean isReadOnly(ELContext context, Object base, Object property) { if (context == null) { throw new NullPointerException(); } return true; }  @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 testIsReadOnly() { ELContext elContext = createMock(ELContext.class); replay(elContext); assertTrue(resolver.isReadOnly(elContext, null, "whatever")); verify(elContext); }
@Test(expected=NullPointerException.class) public void testIsReadOnlyNPE() { resolver.isReadOnly(null, null, "whatever"); }