@BeforeMethod
  public void create() throws Throwable {
    framework = new AtmosphereFramework();
    framework.setDefaultBroadcasterClassName(SimpleBroadcaster.class.getName());
    framework
        .setAsyncSupport(
            new AsynchronousProcessor(framework.getAtmosphereConfig()) {

              @Override
              public Action service(AtmosphereRequest req, AtmosphereResponse res)
                  throws IOException, ServletException {
                return suspended(req, res);
              }

              public void action(AtmosphereResourceImpl r) {
                try {
                  resumed(r.getRequest(), r.getResponse());
                } catch (IOException e) {
                  e.printStackTrace();
                } catch (ServletException e) {
                  e.printStackTrace();
                }
              }
            })
        .init();
  }