assertThat(actual, hasItem(customReturnValueHandler));
}
@Test
public void shouldSupportReturnValueHandlers() throws Exception {
HandlerMethodReturnValueHandler customReturnValueHandler = mock(HandlerMethodReturnValueHandler.class);
given(customReturnValueHandler.supportsReturnType(any(MethodParameter.class))).willReturn(true);
List<HandlerMethodReturnValueHandler> customReturnValueHandlers = Arrays.asList(customReturnValueHandler);
this.resolver.setApplicationContext(this.applicationContext);
this.resolver.setReturnValueHandlers(customReturnValueHandlers);
this.resolver.afterPropertiesSet();
this.resolver.resolve(this.facesContext, this.context);