public void setUp() {
MockitoAnnotations.initMocks(this);
RxJavaPlugins.setComputationSchedulerHandler(scheduler -> Schedulers.trampoline());
viewModel = new SearchActivityViewModel(searchDataModel, analytics);
}
<BUG>@Test
public void search_emitsAnalyticsEvent() {
viewModel.search(QUERY);
</BUG>
verify(analytics).log("SearchPressedEvent");

public void setUp() {
MockitoAnnotations.initMocks(this);
RxJavaPlugins.setComputationSchedulerHandler(scheduler -> Schedulers.trampoline());
viewModel = new SearchActivityViewModel(searchDataModel, analytics);
