   end
 
   setup do
-    new PusherEvent
-    new Authentication
-    new Subscription
-    new PresenceSubscription
-    new Event
-    new Time
-    new JSX
-    new SocketId
-    new :gproc
-    new :cowboy_req
     on_exit fn -> unload end
     :ok
   end

    assert websocket_handle({:text, :client_event_json}, :req, state) ==
      {:ok, :req, state}

    assert validate JSX
    assert validate PusherEvent
    assert validate Channel
    assert validate Event
  end

  test "client event on not subscribed private channel" do

    assert websocket_handle({:text, :subscribe_json}, :req, state) ==
      {:reply, {:text, :subscription_succeeded}, :req, state}

    assert validate [JSX, PusherEvent, Subscription, Event]
  end

  test "subscribe presence channel event failing for bad authentication" do
