### Question:
MainPresenter implements BasePresenter<MainView> { @Override public void onViewAttach(MainView view) { mView = view; } 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 onViewAttach() throws Exception { mMainPresenter = new MainPresenter(null, null, Schedulers.trampoline(), Schedulers.trampoline(), mSubscripciones); mMainPresenter.onViewAttach(mMainView); assertEquals(mMainView, mMainPresenter.getView()); }