expect(servletContext.getInitParameter(LocationConstants.BOOTSTRAP_MODULES_RESOURCE_PARAM)).andReturn("org/impalaframework/web/module/plugin_locations.properties");
servletContext.setAttribute(eq(WebConstants.IMPALA_FACTORY_ATTRIBUTE), isA(ModuleManagementFacade.class)); servletContext.setAttribute(eq(WebConstants.MODULE_DEFINITION_SOURCE_ATTRIBUTE), isA(SingleStringModuleDefinitionSource.class));
replay(servletContext);
ConfigurableWebXmlBasedContextLoader loader = new ConfigurableWebXmlBasedContextLoader();
WebApplicationContext context = loader.createWebApplicationContext(servletContext, null);
assertNotNull(context);
assertTrue(context instanceof GenericWebApplicationContext);
verify(servletContext);
}