    @Test
    public void onSearchForCityResultWithValidResultThenHideProgress() {

        boolean[] result = {false};
        viewModel.searchCityInProgress
                .subscribeOn(scheduler)
                .observeOn(scheduler)
                .subscribe(status -> result[0] = status);

        scheduler.triggerActions();

        viewModel.searchForCity.onNext(true);
        scheduler.triggerActions();

        viewModel.onSearchForCityResult(Chain.optional(mockCity()));
        scheduler.triggerActions();

        assertFalse(result[0]);

    }