public function testGetSongFromSpotify()
 {
     $song = new Song();
     $song->setTitle('Foo song')->setArtist('Bar');
     $spotifyTrack = new Track();
     $this->trackFinder->expects($this->once())->method('findTrack')->with("artist:{$song->getArtist()} track:{$song->getTitle()}")->willReturn($spotifyTrack);
     $result = $this->trackConverter->getSongFromSpotify($song);
     $this->assertSame($spotifyTrack, $result, "Returned track should be the spotify track");
 }
 /**
  * Get the search query to send to spotify from song data, but don't specify artist & track
  *
  * @param Song $song
  *
  * @return string
  */
 protected function getLooseSearchTermFromSongObject(Song $song) : string
 {
     return "{$this->removeUnnecessaryCharacters($song->getArtist())} {$this->removeUnnecessaryCharacters($song->getTitle())}";
 }