HistoneViewResolver extends UrlBasedViewResolver { public HistoneViewResolver addExceptionProcessor(HistoneProcessingExceptionProcessor exceptionProcessor) { exceptionProcessor.setNext(processorChain); processorChain = exceptionProcessor; return this; }  @PostConstruct void postConstruct(); HistoneViewResolver addExceptionProcessor(HistoneProcessingExceptionProcessor exceptionProcessor); String getTemplateLocation(); void setTemplateLocation(String templateLocation); String getEncoding(); void setEncoding(String encoding); HistoneSpringEngine getHistone(); void setHistone(HistoneSpringEngine histone); List<HistoneTemplatePostProcessor> getPostProcessors(); void setPostProcessors(List<HistoneTemplatePostProcessor> postProcessors); HistoneProcessingExceptionProcessor getProcessorChain(); void setProcessorChain(HistoneProcessingExceptionProcessor processorChain);  }
@Test public void testAddExceptionProcessor() throws Exception { HistoneProcessingExceptionProcessor histoneProcessingExceptionProcessor = histoneViewResolver.initExceptionProcessingChain(); assertEquals(histoneProcessingExceptionProcessor.getClass(), ParsingHistoneProcessingExceptionProcessor.class); histoneViewResolver.addExceptionProcessor(new DefaultHistoneProcessingExceptionProcessor()); histoneProcessingExceptionProcessor = histoneViewResolver.getProcessorChain(); assertEquals(histoneProcessingExceptionProcessor.getClass(), DefaultHistoneProcessingExceptionProcessor.class); }