public function testValidationPass()
 {
     $utilities = $this->getMockBuilder('Faker\\Components\\Engine\\Common\\Utilities')->getMock();
     $generator = $this->getMock('\\PHPStats\\Generator\\GeneratorInterface');
     $locale = $this->getMock('\\Faker\\Locale\\LocaleInterface');
     $event = $this->getMockBuilder('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface')->getMock();
     $id = 'foreignKeyNode';
     $cache = $this->getMockBuilder('Faker\\Components\\Engine\\Common\\GeneratorCache')->disableOriginalConstructor()->getMock();
     $type = new ForeignKeyNode($id, $event);
     $type->setResultCache($cache);
     $type->setOption('foreignTable', 'aaaa');
     $type->setOption('foreignColumn', 'aaaa');
     $type->setOption('foreignColumn', 'aaaa');
     $type->validate();
     $this->assertTrue($type->getUseCache());
     $type->setOption('silent', true);
     $type->validate();
     $this->assertFalse($type->getUseCache());
 }