applicationContext = new GeoServerTestApplicationContext(
contexts.toArray(new String[contexts.size()]), servletContext);
applicationContext.setUseLegacyGeoServerLoader(false);
applicationContext.refresh();
applicationContext.publishEvent(new ContextLoadedEvent(applicationContext));
// set the parameter after a refresh because it appears a refresh
// wipes
// out all parameters
servletContext.setAttribute(