public function testDenormalize()
 {
     $normalizer = new AbstractObjectNormalizerDummy();
     $normalizedData = $normalizer->denormalize(array('foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz'), __NAMESPACE__ . '\\Dummy');
     $this->assertSame('foo', $normalizedData->foo);
     $this->assertNull($normalizedData->bar);
     $this->assertSame('baz', $normalizedData->baz);
 }
 /**
  * @expectedException \Symfony\Component\Serializer\Exception\ExtraAttributesException
  * @expectedExceptionMessage Extra attributes are not allowed ("fooFoo", "fooBar" are unknown).
  */
 public function testDenormalizeWithExtraAttributes()
 {
     $normalizer = new AbstractObjectNormalizerDummy();
     $normalizer->denormalize(array('fooFoo' => 'foo', 'fooBar' => 'bar'), __NAMESPACE__ . '\\Dummy', 'any', array('allow_extra_attributes' => false));
 }