expect(config.isImport()).andReturn(false).anyTimes();
replay(config);
JDBCGeoServerLoader loader =
new JDBCGeoServerLoader(testSupport.getResourceLoader(), config);
loader.setGeoServerFacade(new JDBCGeoServerFacade(testSupport.getDatabase()));
loader.setApplicationContext(testSupport.getApplicationContext());
//create a mock and ensure a global, logging, and service config are set
GeoServerImpl geoServer = createNiceMock(GeoServerImpl.class);
expect(geoServer.getFactory()).andReturn(new GeoServerFactoryImpl(geoServer)).anyTimes();