MainActivity extends AppCompatActivity { public Toolbar getToolbar() { return toolbar; }  @Override void onBackPressed(); @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); @Override boolean onPrepareOptionsMenu(Menu menu); @Override void setTitle(CharSequence title); @Override void onConfigurationChanged(Configuration newConfig); void collapseSearchView(); void setText(final TextView text, final String value); void setTextFromHtml(final TextView text, final String value); void setImage(final ImageView img, final String url); void setImageTag(final ImageView img, final String url); void setBackDropImage(final ImageView img, final String url); void setRatingBarValue(final RatingBar ratingBar, final float value); void hideLayout(final ViewGroup layout); void hideView(final View view); void showView(final View view); void hideTextView(final TextView textView); void hideRatingBar(final RatingBar ratingBar); void invisibleView(final View view); int getCurrentMovViewPagerPos(); void setCurrentMovViewPagerPos(int currentMovViewPagerPos); int getCurrentTVViewPagerPos(); void setCurrentTVViewPagerPos(int currentTVViewPagerPos); DrawerLayout getMDrawerLayout(); boolean getReAttachMovieFragments(); void setReAttachMovieFragments(boolean reAttachMovieFragments); boolean getReAttachTVFragments(); void setReAttachTVFragments(boolean reAttachTVFragments); @Override void onSaveInstanceState(Bundle outState); static long getMaxMem(); TrailerList getTrailerListView(); GalleryList getGalleryListView(); void setMovieDetailsFragment(MovieDetails movieDetailsFragment); MovieDetails getMovieDetailsFragment(); void setCastDetailsFragment(CastDetails castDetailsFragment); CastDetails getCastDetailsFragment(); TVDetails getTvDetailsFragment(); void setTvDetailsFragment(TVDetails tvDetailsFragment); DisplayImageOptions getOptionsWithFade(); DisplayImageOptions getOptionsWithoutFade(); Bundle getMovieDetailsInfoBundle(); void setMovieDetailsInfoBundle(Bundle movieDetailsInfoBundle); Bundle getMovieDetailsCastBundle(); void setMovieDetailsCastBundle(Bundle movieDetailsCastBundle); Bundle getMovieDetailsOverviewBundle(); void setMovieDetailsOverviewBundle(Bundle movieDetailsOverviewBundle); Bundle getCastDetailsInfoBundle(); void setCastDetailsInfoBundle(Bundle castDetailsInfoBundle); Bundle getCastDetailsCreditsBundle(); void setCastDetailsCreditsBundle(Bundle castDetailsCreditsBundle); Bundle getCastDetailsBiographyBundle(); void setCastDetailsBiographyBundle(Bundle castDetailsBiographyBundle); Bundle getTVDetailsInfoBundle(); void setTVDetailsInfoBundle(Bundle TVDetailsInfoBundle); Bundle getTVDetailsCastBundle(); void setTVDetailsCastBundle(Bundle TVDetailsCastBundle); Bundle getTVDetailsOverviewBundle(); void setTVDetailsOverviewBundle(Bundle TVDetailsOverviewBundle); void addMovieDetailsBundle(Bundle movieDetailsBundle); void removeMovieDetailsBundle(int pos); void resetMovieDetailsBundle(); ArrayList<Bundle> getMovieDetailsBundle(); void addCastDetailsBundle(Bundle castDetailsBundle); void removeCastDetailsBundle(int pos); void resetCastDetailsBundle(); ArrayList<Bundle> getCastDetailsBundle(); void addTvDetailsBundle(Bundle tvDetailsBundle); void removeTvDetailsBundle(int pos); void resetTvDetailsBundle(); ArrayList<Bundle> getTvDetailsBundle(); void setRestoreMovieDetailsState(boolean restoreMovieDetailsState); boolean getRestoreMovieDetailsState(); void setRestoreMovieDetailsAdapterState(boolean restoreMovieDetailsAdapterState); boolean getRestoreMovieDetailsAdapterState(); void setOrientationChanged(boolean orientationChanged); boolean getSearchViewCount(); void setSearchViewCount(boolean searchViewCount); void incSearchMovieDetails(); void decSearchMovieDetails(); void incSearchCastDetails(); void decSearchCastDetails(); void incSearchTvDetails(); void decSearchTvDetails(); void clearMovieDetailsBackStack(); void clearCastDetailsBackStack(); void clearTvDetailsBackStack(); MovieSlideTab getMovieSlideTab(); void setMovieSlideTab(MovieSlideTab movieSlideTab); TVSlideTab getTvSlideTab(); void setTvSlideTab(TVSlideTab tvSlideTab); GenresList getGenresList(); Toolbar getToolbar(); void clearSearchCount(); int getOldPos(); int getLastVisitedSimMovie(); void setLastVisitedSimMovie(int lastVisitedSimMovie); int getLastVisitedSimTV(); void setLastVisitedSimTV(int lastVisitedSimTV); boolean getSaveInMovieDetailsSimFragment(); void setSaveInMovieDetailsSimFragment(boolean saveInMovieDetailsSimFragment); MovieDetails getMovieDetailsSimFragment(); void setMovieDetailsSimFragment(MovieDetails movieDetailsSimFragment); boolean getSaveInTVDetailsSimFragment(); void setSaveInTVDetailsSimFragment(boolean saveInTVDetailsSimFragment); TVDetails getTvDetailsSimFragment(); void setTvDetailsSimFragment(TVDetails tvDetailsSimFragment); void setLastVisitedMovieInCredits(int lastVisitedMovieInCredits); int getLastVisitedMovieInCredits(); int getIconMarginConstant(); int getIconMarginLandscape(); int getIconConstantSpecialCase(); DateFormat getDateFormat(); int getOneIcon(); int getOneIconToolbar(); int getTwoIcons(); int getTwoIconsToolbar(); int getThreeIcons(); int getThreeIconsToolbar();  }
@Test public void testToolbar_same() throws Exception { Toolbar expected = toolbar; Toolbar actual = activity.getToolbar(); assertEquals("Toolbar is different!", expected.hashCode(), actual.hashCode()); }