### Question:
NavigationPresenter { void onRouteOverviewClick() { view.updateWaynameVisibility(false); view.updateCameraRouteOverview(); view.showRecenterBtn(); } NavigationPresenter(NavigationContract.View view);   }### Answer:
@Test public void onRouteOverviewButtonClick_cameraIsAdjustedToRoute() { NavigationContract.View view = mock(NavigationContract.View.class); NavigationPresenter presenter = new NavigationPresenter(view); presenter.onRouteOverviewClick(); verify(view).updateCameraRouteOverview(); }
@Test public void onRouteOverviewButtonClick_recenterBtnIsShown() { NavigationContract.View view = mock(NavigationContract.View.class); NavigationPresenter presenter = new NavigationPresenter(view); presenter.onRouteOverviewClick(); verify(view).showRecenterBtn(); }
@Test public void onRouteOverviewButtonClick_mapWaynameIsHidden() { NavigationContract.View view = mock(NavigationContract.View.class); NavigationPresenter presenter = new NavigationPresenter(view); presenter.onRouteOverviewClick(); verify(view).updateWaynameVisibility(false); }