public function testSimple()
 {
     $annotation = new SerializationContext(['groups' => ['test'], 'serializeNull' => true, 'version' => 1, 'foo' => 'bar']);
     $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 SerializationContext $annotation
  *
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->setSerializationContext(['groups' => $annotation->getGroups(), 'serializeNull' => $annotation->getSerializeNull(), 'version' => $annotation->getVersion(), 'attributes' => $annotation->getAttributes()]);
 }