### Question:
AnalyzeImageViewModel extends BaseObservable { public void onClickAnalyze() { eventBus.register(this); imageApi.getLabels(thumbnailPath); analysisPending = true; errorOccurred = false; notifyPropertyChanged(BR.analyzeEnabled); notifyPropertyChanged(BR.progressBarVisibility); notifyPropertyChanged(BR.errorVisibility); } AnalyzeImageViewModel(String thumbnailPath, EventBus eventBus, ImageApi imageApi); @Bindable String getImagePath(); @Bindable boolean isAnalyzeEnabled(); @Bindable int getProgressBarVisibility(); @Bindable int getErrorVisibility(); void setFullImagePath(String imagePath); void onClickAnalyze();  }### Answer:
@Test public void testOnClickAnalyze() { viewModel.onClickAnalyze(); assertFalse(viewModel.isAnalyzeEnabled()); assertEquals(View.VISIBLE, viewModel.getProgressBarVisibility()); assertEquals(View.GONE, viewModel.getErrorVisibility()); verify(eventBus).register(viewModel); verify(imageApi).getLabels(THUMBNAIL_PATH); }