### Question:
SpringFacesModelELResolver extends AbstractELResolver { @Override protected Object get(String property) { FacesContext context = FacesContext.getCurrentInstance(); SpringFacesModel model = (context == null ? null : SpringFacesModelHolder.getModel(context.getViewRoot())); if (model != null) { return model.get(property); } return null; }    }### Answer:
@Test public void shouldReturnNullWhenNoFacesContext() throws Exception { assertThat(this.resolver.get("key"), is(nullValue())); }
@Test public void shouldReturnNullWhenNoModel() throws Exception { setupFacesContext(); assertThat(this.resolver.get("key"), is(nullValue())); }
@Test public void shouldFindFromModel() throws Exception { setupFacesContext(); SpringFacesModel model = new SpringFacesModel(); model.put("key", "value"); FacesContext facesContext = FacesContext.getCurrentInstance(); SpringFacesModelHolder.attach(facesContext, facesContext.getViewRoot(), model); assertThat(this.resolver.get("key"), is(equalTo((Object) "value"))); }