AtmosphereResource atmosphereResource = new AtmosphereResourceImpl();
AtmosphereRequest atmosphereRequest = AtmosphereRequest.wrap(wicketTester.getRequest());
AtmosphereResponse atmosphereResponse = AtmosphereResponse.wrap(wicketTester.getResponse());
TesterAsyncSupport asyncSupport = new TesterAsyncSupport();
atmosphereResource.initialize(broadcaster.getApplicationConfig(), broadcaster, atmosphereRequest, atmosphereResponse,
asyncSupport, new AtmosphereHandlerAdapter());
atmosphereResource.setBroadcaster(broadcaster);
broadcaster.addAtmosphereResource(atmosphereResource);