@Test
  public void event() {
    Packet packet1 = new Packet(Parser.EVENT);
    packet1.data = new JsonParser().parse("[\"a\", 1, {}]");
    packet1.nsp = "/";
    test(packet1);

    Packet packet2 = new Packet(Parser.EVENT);
    packet2.data = new JsonParser().parse("[\"a\", 1, {}]");
    packet2.nsp = "/test";
    test(packet2);
  }
 @Test
 public void ack() {
   Packet packet = new Packet(Parser.ACK);
   packet.data = new JsonParser().parse("[\"a\", 1, {}]");
   packet.id = 123;
   packet.nsp = "/";
   test(packet);
 }
 @Test
 public void disconnect() {
   Packet packet = new Packet(Parser.DISCONNECT);
   packet.nsp = "/woot";
   test(packet);
 }