/**
  * test that calling unbindModel() with reset == true multiple times
  * leaves associations in the correct state.
  *
  * @return void
  */
 public function testUnbindMultipleTimesResetCorrectly()
 {
     $this->loadFixtures('User', 'Comment', 'Article');
     $TestModel = new Article10();
     $TestModel->unbindModel(array('hasMany' => array('Comment')));
     $TestModel->unbindModel(array('hasMany' => array('Comment')));
     $TestModel->resetAssociations();
     $this->assertTrue(isset($TestModel->hasMany['Comment']), 'Association permanently removed');
 }