public function testSimple()
 {
     $annotation = new DeserializationContext(['depth' => 4, 'groups' => ['test'], 'serializeNull' => true, 'version' => 1, 'foo' => 'bar']);
     $this->assertEquals(4, $annotation->getDepth());
     $this->assertEquals(['test'], $annotation->getGroups());
     $this->assertEquals(true, $annotation->getSerializeNull());
     $this->assertEquals(1, $annotation->getVersion());
     $this->assertEquals(['foo' => 'bar'], $annotation->getAttributes());
 }
 /**
  * Will set annotation data to $method
  *
  * @param Method                 $method
  * @param DeserializationContext $annotation
  *
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->setDeserializationContext(['depth' => $annotation->getDepth(), 'groups' => $annotation->getGroups(), 'serializeNull' => $annotation->getSerializeNull(), 'version' => $annotation->getVersion(), 'attributes' => $annotation->getAttributes()]);
 }