@Before
 public void setup() {
   MockitoAnnotations.initMocks(this);
   UIViewRoot viewRoot = mockUIViewRootWithModelSupport();
   given(this.facesContext.getViewRoot()).willReturn(viewRoot);
   this.model =
       SpringFacesModelHolder.attach(this.facesContext, viewRoot, new HashMap<String, Object>());
   FacesContextSetter.setCurrentInstance(this.facesContext);
 }
 @After
 public void cleanup() {
   FacesContextSetter.setCurrentInstance(null);
 }
 @Test
 public void shouldNotResolveWithoutFacesContext() throws Exception {
   FacesContextSetter.setCurrentInstance(null);
   MethodParameter parameter = mockMethodParameter(Map.class);
   assertFalse(this.resolver.supportsParameter(parameter));
 }