/**
  * @return Response
  */
 public function searchPlayListsAction(Request $request)
 {
     $playListResources = $this->get('atrapalo.application.model.playlist.search_playlists.search_playlists_command_handler')->handle(SearchPlayListsCommand::instance());
     return $this->render('PlayWithElasticSearchBundle:Playlists:index.html.twig', ['playlists' => $playListResources, 'playlist_name' => $request->get('playlist_name'), 'track_name' => $request->get('track_name'), 'composer' => $request->get('composer')]);
 }
 /**
  * @test
  */
 public function itShouldReturnPlayLists()
 {
     $commandResult = $this->handle(SearchPlayListsCommand::instance());
     $this->assertInstanceOf(PlayList::class, $this->getFirstPlayList($commandResult));
 }