public function testValidateCascadedPropertyDoesNotValidateNullValues() {
$entity = new Entity();
$entity->reference = null;
$this->metadata
->addPropertyConstraint('reference', new Valid());
$this->visitor
->validate($entity, 'Default', '');
$this
->assertCount(0, $this->visitor
->getViolations());
}