/** 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