List<Object> helperSources = new ArrayList<Object>();
HelperSourceMock helperSourceMock = new HelperSourceMock();
helperSources.add(helperSourceMock);
postProcessor.setHelperSources(helperSources);
HandlebarsViewResolver viewResolver = EasyMock.createMock(HandlebarsViewResolver.class);
Object otherBean = EasyMock.createMock(Object.class);
reset(viewResolver, otherBean);
expect(viewResolver.registerHelper("foo", helperMock)).andReturn(viewResolver).once();
expect(viewResolver.registerHelpers(helperSourceMock)).andReturn(viewResolver).once();
replay(viewResolver, otherBean);
postProcessor.postProcessBeforeInitialization(viewResolver, "handlebarsViewResolver");
postProcessor.postProcessBeforeInitialization(otherBean, "otherBean");