@Test
public void subscribeTogglesExchangeRateVisibilityAndListensToChangeEvents() throws Exception {

    presenter = new CurrencyExchangeRateEditorPresenter(currencyExchangeRateEditorView, receiptPricingView, currencyListEditorView, receiptDateView, exchangeRateServiceManager, databaseHelper, trip, editableReceipt, null, Schedulers.trampoline(), Schedulers.trampoline(), Schedulers.trampoline());
    presenter.subscribe();
    final InOrder inOrderVerifier = inOrder(toggleExchangeRateFieldVisibilityConsumer);
    inOrderVerifier.verify(toggleExchangeRateFieldVisibilityConsumer).accept(false);
    currencyClicks.onNext(0);
    inOrderVerifier.verify(toggleExchangeRateFieldVisibilityConsumer).accept(false);
    currencyClicks.onNext(1);
    inOrderVerifier.verify(toggleExchangeRateFieldVisibilityConsumer).accept(true);
}