public function testUnwrapData()
 {
     $visitor = new JsonSerializationVisitor(new CamelCaseNamingStrategy());
     $type = array('name' => 'Xabbuh\\XApi\\Model\\Document', 'params' => array());
     $context = new SerializationContext();
     $this->handler->unwrapData($visitor, DocumentFixtures::getDocumentData(), $type, $context);
     $this->assertEquals(array('x' => 'foo', 'y' => 'bar'), $visitor->getRoot());
 }
 public function testSerializeDocumentData()
 {
     $documentData = DocumentFixtures::getDocumentData();
     $this->assertJsonStringEqualsJsonString(DocumentJsonFixtures::getDocument(), $this->documentDataSerializer->serializeDocumentData($documentData));
 }