expect(beanFactory.getBeansOfType(FilterFactoryBean.class)).andReturn(ObjectMapUtils.newMap("f1", newFilter("somefilter")));
expect(beanFactory.getBeansOfType(ServletFactoryBean.class)).andReturn(ObjectMapUtils.newMap("s1", newServlet("someservlet")));
expect(beanFactory.getBeansOfType(ModuleInvokerContributor.class)).andReturn(ObjectMapUtils.newMap());
replay(beanFactory, servletContext);
ModuleHttpServiceInvoker invoker = builder.buildInvoker();
assertEquals(0, invoker.getFilters().size());
assertEquals(1, invoker.getServlets().size());
verify(beanFactory, servletContext);
}