@@ -0,0 +1,1055 @@
+/**%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.CategoriesConsole;%0Aimport com.codeup.movies.catalog.AddCategory;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class AddCategoryActionTest %7B%0A    @Test%0A    public void it_adds_a_new_category() %7B%0A        String newCategory = %22action%22;%0A        when(console.askForCategoryName()).thenReturn(newCategory);%0A%0A        action.execute();%0A%0A        verify(addCategory).withName(newCategory);%0A    %7D%0A%0A    @Before%0A    public void configureAction() %7B%0A        action = new AddCategoryAction(addCategory, console);%0A    %7D%0A%0A    private AddCategoryAction action;%0A%0A    @Mock%0A    private AddCategory addCategory;%0A%0A    @Mock%0A    private CategoriesConsole console;%0A%7D%0A

Add tests for rAddCategoryAction class.