### Question:
SpringFacesModelMethodArgumentResolver implements HandlerMethodArgumentResolver { public boolean supportsParameter(MethodParameter parameter) { SpringFacesModel model = getSpringFacesModel(); if (model == null) { return false; } if (parameter.getParameterType().isInstance(model)) { return true; } return ((this.resolveModelItems) && (findModelValue(model, parameter) != null)); } SpringFacesModelMethodArgumentResolver();  SpringFacesModelMethodArgumentResolver(boolean resolveModelItems); boolean supportsParameter(MethodParameter parameter); Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer,
			NativeWebRequest webRequest, WebDataBinderFactory binderFactory);  }### Answer:
@Test public void shouldNotResolveWithoutFacesContext() throws Exception { FacesContextSetter.setCurrentInstance(null); MethodParameter parameter = mockMethodParameter(Map.class); assertThat(this.resolver.supportsParameter(parameter), is(false)); }
@Test public void shouldNotResolveIfMultipleValues() throws Exception { ComplexType v1 = new ComplexType(); ComplexType v2 = new ComplexType(); this.model.put("k1", v1); this.model.put("k2", v2); MethodParameter parameter = mockMethodParameter(ComplexType.class); assertThat(this.resolver.supportsParameter(parameter), is(false)); }
@Test public void shouldNotResolveSimpleTypes() throws Exception { this.model.put("k", "v"); MethodParameter parameter = mockMethodParameter(String.class); assertThat(this.resolver.supportsParameter(parameter), is(false)); }