### Question:
RecoveryPresenter { @Nonnull public Completable stopPresenting() { return Completable.create(emitter -> { synchronized (startStopPresentingLock) { if (currentlyPresenting.compareAndSet(true, false)) { for (final Disposable disposable : disposables) { disposable.dispose(); } disposables.clear(); } emitter.onComplete(); } }); } RecoveryPresenter(
      @Nonnull final RecoveryView view,
      @Nonnull final Scheduler presentationScheduler,
      @Nonnull final Scheduler viewScheduler,
      @Nonnull final RxShamir rxShamir,
      @Nonnull final SecretEncoder secretEncoder,
      @Nonnull final PersistenceOperations persistenceOperations,
      @Nonnull final RxFiles rxFiles); @Nonnull Completable startPresenting(); @Nonnull Completable stopPresenting();  }### Answer:
@Test public void testStopPresenting_calledBeforeStarting() { presenter.stopPresenting().blockingGet(); }