// the control
assertEquals(facesContext.getApplication().evaluateExpressionGet(facesContext, expr, Object.class), "bar");
// the test
FacesLifecycle.setPhaseId(PhaseId.INVOKE_APPLICATION);
Expressions expressions = new FacesExpressions();
assert expressions.getELContext().getContext(FacesContext.class) != null;
assertEquals(expressions.createValueExpression(expr).getValue(), "bar");
}