### Question:
ThumbnailViewModel extends BaseObservable { public void onClickImage(View view) { eventBus.post(new ViewImageEvent(thumbnailPath, String.valueOf(fullImageId), view)); } ThumbnailViewModel(EventBus eventBus); @Bindable String getImagePath(); void setThumbnailPath(String path); void setFullImageId(int fullImageId); void onClickImage(View view);  }### Answer:
@Test public void testOnClickImage() { View view = mock(View.class); viewModel.setThumbnailPath(THUMBNAIL_PATH); viewModel.setFullImageId(IMAGE_ID); viewModel.onClickImage(view); verify(eventBus).post(eventCaptor.capture()); ViewImageEvent event = eventCaptor.getValue(); assertNotNull(event); assertEquals(view, event.getView()); assertEquals(EXPECTED_IMAGED_ID, event.getFullImageId()); assertEquals(THUMBNAIL_PATH, event.getThumbnailPath()); }