/**
  * @expectedException ReflectionException
  */
 public function testHasManyThroughWithInvalidClassName()
 {
     Event::$belongsTo = array(array('host'));
     Venue::$hasOne = array(array('invalid_assoc'));
     Venue::$hasMany[1] = array('hosts', 'through' => 'invalid_assoc');
     $this->getRelationship()->hosts;
 }