WebApplicationContext appContext = EasyMock.createMock(WebApplicationContext.class);
EasyMock.expect(appContext.getServletContext()).andReturn(mockServletCtx).anyTimes();
EasyMock.replay(appContext);
contextProvider = new ApplicationContextProvider();
contextProvider.setApplicationContext(appContext);
tld = EasyMock.createMock(TileLayerDispatcher.class);
TileLayer toppStates = createMockLayer("topp:states");
TileLayer raster = createMockLayer("raster test layer");