public function testLoadClassMetadataAndMerge()
 {
     $classMetadata = new ClassMetadata('Symfony\\Component\\Serializer\\Tests\\Fixtures\\GroupDummy');
     $parentClassMetadata = new ClassMetadata('Symfony\\Component\\Serializer\\Tests\\Fixtures\\GroupDummyParent');
     $this->loader->loadClassMetadata($parentClassMetadata);
     $classMetadata->merge($parentClassMetadata);
     $this->loader->loadClassMetadata($classMetadata);
     $this->assertEquals(TestClassMetadataFactory::createClassMetadata(true), $classMetadata);
 }
 public function testLoadClassMetadataAndMerge()
 {
     $loader = new AnnotationLoader(new AnnotationReader());
     $metadata = new ClassMetadata('Symfony\\Component\\Serializer\\Tests\\Fixtures\\GroupDummy');
     $parentMetadata = new ClassMetadata('Symfony\\Component\\Serializer\\Tests\\Fixtures\\GroupDummyParent');
     $loader->loadClassMetadata($parentMetadata);
     $metadata->mergeAttributesGroups($parentMetadata);
     $loader->loadClassMetadata($metadata);
     $this->assertEquals(TestClassMetadataFactory::createClassMetadata(true), $metadata);
 }