### Question:
NavigationOutcomeResolverChain implements NavigationOutcomeResolver { public NavigationOutcome resolve(FacesContext facesContext, NavigationContext navigationContext) throws Exception { NavigationOutcomeResolver resolver = findResolver(facesContext, navigationContext); Assert.state(resolver != null, "Unable to find resolver for navigation outcome '" + navigationContext.getOutcome() + "'"); return resolver.resolve(facesContext, navigationContext); }  boolean canResolve(FacesContext facesContext, NavigationContext navigationContext); NavigationOutcome resolve(FacesContext facesContext, NavigationContext navigationContext); void setResolvers(List<NavigationOutcomeResolver> resolvers); List<NavigationOutcomeResolver> getResolvers();  }### Answer:
@Test public void shouldFailIfResolvedWhenCanResolveIsFalse() throws Exception { this.thrown.expect(IllegalStateException.class); this.thrown.expectMessage("Unable to find resolver for navigation outcome 'outcome'"); this.chain.resolve(this.facesContext, this.navigationContext); }