### Question:
Jsf11ValidatingElResolver implements ValidatingElResolver { @Override public ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo) { if (METHOD_BINDING_ATTRIBUTES.contains(attributeInfo.getAttributeName())) { return validateMethodElExpression(elExpression); } else { return validateValueElExpression(elExpression); } } Jsf11ValidatingElResolver(); void setUnknownVariableResolver(ElVariableResolver unknownVariableResolver); @Override /** {@inheritDoc} */ ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo); JsfElValidator declareVariable(final String name, final Object value); JsfElValidator definePropertyTypeOverride(final String elExpression, final Class<?> newType); void setIncludeKnownVariablesInException(
            boolean includeKnownVariablesInException); void addElExpressionFilter(ElExpressionFilter elExpressionFilter); boolean isIncludeKnownVariablesInException();  }### Answer:
@Test(expected = ReferenceSyntaxException.class) public void should_reject_non_el_literal() throws Exception { elResolver.validateElExpression("this is a literal string, not an EL expression", new AttributeInfo("<dummy>", Object.class)); }