/**
  * @dataProvider serializeProvider
  */
 public function testUnserialize($id, $type, $customerId, $anonymousCustomerId, $data, $time, $serialized)
 {
     $object = $this->serializer->unserialize($serialized);
     $event = new CustomerEvent($id, $type, $time);
     $event->setCustomerId($customerId);
     $event->setAnonymousCustomerId($anonymousCustomerId);
     $event->setData($data);
     $this->assertEquals($event, $object);
 }