@@ -0,0 +1,1772 @@
+/**%0A * This source file is subject to the license that is bundled with this package in the file LICENSE.%0A */%0Apackage com.codeup.application.actions;%0A%0Aimport com.codeup.application.MoviesConsole;%0Aimport com.codeup.movies.Category;%0Aimport com.codeup.movies.Movie;%0Aimport com.codeup.movies.catalog.SearchMovieByTitle;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class SearchMovieByTitleActionTest %7B%0A    @Test%0A    public void it_shows_movies_with_similar_titles() %7B%0A        String titleFragment = %22wi%22;%0A        when(console.askForMovieTitle()).thenReturn(titleFragment);%0A        when(searchMovie.withSimilarTitle(titleFragment)).thenReturn(movies);%0A%0A        action.execute();%0A%0A        verify(console).showMovies(movies);%0A    %7D%0A%0A    @Before%0A    public void configureAction() %7B%0A        Category animated = Category.named(%22animated%22);%0A        movies = new ArrayList%3C%3E();%0A        movies.add(Movie.publish(%0A            %22The wizard of Oz%22,%0A            5,%0A            %22wizard.png%22,%0A            Collections.singletonList(animated)%0A        ));%0A        movies.add(Movie.publish(%0A            %22Gone with the wind%22,%0A            4,%0A            %22wind.png%22,%0A            Collections.singletonList(animated)%0A        ));%0A        action = new SearchMovieByTitleAction(searchMovie, console);%0A    %7D%0A%0A    private SearchMovieByTitleAction action;%0A%0A    private List%3CMovie%3E movies;%0A%0A    @Mock%0A    private SearchMovieByTitle searchMovie;%0A%0A    @Mock%0A    private MoviesConsole console;%0A%7D%0A

Add tests for SearchMovieByTitleAction class.