beanFactory = createMock(ListableBeanFactory.class);
builder.setBeanFactory(beanFactory);
builder.setModuleDefinition(new SimpleModuleDefinition("mymodule"));
servletContext = createMock(ServletContext.class);
builder.setServletContext(servletContext);
moduleInvokerContributor = new ModuleInvokerContributor();
moduleInvokerContributor.setSuffix("exe");
expect(beanFactory.getBeansOfType(ServletContextListenerFactoryBean.class)).andReturn(null);
}