### Question:
MainPresenter implements BasePresenter<MainView> { @Override public void onViewDetach() { mView = mDummyMainView; } MainPresenter(MainView mainView, AlumnosUseCase alumnosUseCase,
            Scheduler subscribeOnScheduler, Scheduler observeOnScheduler,
            CompositeDisposable subscripciones); @Override void onViewAttach(MainView view); @Override void onViewDetach(); @Override void onDestroy(); @Override MainView getView(); void agregarAlumno(); void actualizarAlumno(Alumno alumno); void obtenerAlumnos();  }### Answer:
@Test public void onViewDetach() throws Exception { mMainPresenter.onViewDetach(); assertThat(mMainPresenter.getView(), instanceOf(DummyMainView.class)); }