public function testRemoveDuplicatesByModelsGameCollection()
 {
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     $models = array();
     $gameCollection = new GameCollection();
     $gameCollection->person = $super;
     $gameCollection->type = 'Basketball';
     $gameCollection->serializedData = serialize(array('something'));
     $gameCollection->save();
     $models[] = $gameCollection;
     $gameCollection2 = new GameCollection();
     $gameCollection2->person = $super;
     $gameCollection2->type = 'Basketball';
     $gameCollection2->serializedData = serialize(array('something2'));
     $gameCollection2->save();
     $models[] = $gameCollection2;
     $messageContent = null;
     $this->assertEquals(2, count(GameCollection::getAll()));
     GamificationUtil::removeDuplicatesByModels($models, $messageContent);
     $gameCollections = GameCollection::getAll();
     $this->assertEquals(1, count($gameCollections));
     $this->assertNotNull($messageContent);
 }