/** Test remove object */
 @Test
 public void removeObserver() {
   addAnimeController.addObserver(observerTest);
   addAnimeController.deleteObserver(observerTest);
   addAnimeController.notifyObservers();
   assertFalse("Observer not removed!", observerTest.notified);
 } // end of the method removeObserver
 /** Test edit anime */
 public void testEditAnime() {
   Index index = new Index("", 1);
   index.setCodeIndex(1);
   testIndexes.add(index);
   Anime anime = new Anime();
   anime.setCodeAnime(1);
   anime.setCurrentEpisode(0);
   testAnimes.add(anime);
   addAnimeController.setIndexAnime(index, anime);
   addAnimeController.okAction();
   assertTrue("The anime should be registered", testAnimes.size() > 0);
 } // end of the method testEditAnime
 /** Test add anime */
 public void testAddAnime() {
   Index index = new Index("", 1);
   index.setCodeIndex(1);
   Anime anime = new Anime();
   anime.setCodeAnime(1);
   anime.setCurrentEpisode(0);
   AddAnimeView addAnimeView = addAnimeController.getView();
   addAnimeView.setTitleAnime(index.getMainTitleAnime());
   addAnimeView.setCurrentEpisode(anime.getCurrentEpisode());
   addAnimeController.okAction();
   assertTrue("The anime should be registered", testAnimes.size() > 0);
 } // end of the method testAddAnime
 /** Test add and notify methods */
 @Test
 public void testAddNotifyObserver() {
   addAnimeController.addObserver(observerTest);
   addAnimeController.notifyObservers();
   assertTrue("Observer not added!", observerTest.notified);
 } // end of the method testAddNotifyObserver
 /** Close View */
 @Test
 public void close() {
   addAnimeController.closeView();
   assertFalse("The view should be closed.", addAnimeController.getView().isOpen());
 } // end of the method close