public function testUncallableGenericValidator()
{
$subject = new Form(array('model' => __CLASS__, 'validators' => array(true, 'password' => false)));
$request = (object) array('data' => array('username' => 'Bob'));
$expected = 'Authentication validator is not callable.';
$this->assertException($expected, function () use($subject, $request) {
$subject->check($request);
});
}