/**
  * @test
  */
 public function canBuildJsonFromStopWordCollection()
 {
     $stopWordCollection = new StopWordCollection();
     $stopWord = new StopWord();
     $stopWord->setWord("test");
     $stopWordCollection->add($stopWord);
     $this->assertEquals(1, $stopWordCollection->getCount());
     $expectedJson = '["test"]';
     $json = $this->dataMapper->toJson($stopWordCollection);
     $this->assertEquals($expectedJson, $json);
 }