public function testLoadValues()
{
$model = Model::fromArray(array('name' => 'Name'));
$inputFilterFactory = new InputFilterFactory();
$inputFilter = $inputFilterFactory->createInputFilter(array('name' => array('required' => true, 'validators' => array(array('name' => 'not_empty'), array('name' => 'db\\no_record_exists', 'options' => array('table' => 'datatype', 'field' => 'name', 'adapter' => $this->object->getAdapter()))))));
$this->object->setInputFilter($inputFilter);
$this->object->add(new Element\Text('name'));
$this->assertInstanceOf('Gc\\Form\\AbstractForm', $this->object->loadValues($model));
}