public void shouldRegisterCustomNavigationViewResolverWithoutDefaults() throws Exception {
StaticWebApplicationContext applicationContext = loadMvcApplicationContext(bean(
"navigationOutcomeResolverBean", CustomNavigationOutcomeResolver.class)
+ "<faces:mvc-support><faces:navigation-outcome-resolvers register-defaults=\"false\"><ref bean=\"navigationOutcomeResolverBean\"/>"
+ "</faces:navigation-outcome-resolvers></faces:mvc-support>");
NavigationOutcomeResolverChain chain = applicationContext.getBean(NavigationOutcomeResolverChain.class);
assertThat(chain.getResolvers().size(), is(1));
assertThat(chain.getResolvers().get(0), is(CustomNavigationOutcomeResolver.class));
}