public function testLoadClassMetadata() {
$factory = new ClassMetadataFactory(new TestLoader());
$metadata = $factory
->getMetadataFor(self::PARENTCLASS);
$constraints = array(
new ConstraintA(array(
'groups' => array(
'Default',
'EntityParent',
),
)),
);
$this
->assertEquals($constraints, $metadata
->getConstraints());
}