MainViewModel extends ViewModel { public void onClickButtonRecyclerView() { attachedActivity.startActivity(AndroidVersionsActivity.class); } MainViewModel(@NonNull ActivityComponent activityComponent,
                  @Nullable State savedInstanceState); void onClickButtonClicks(); void onClickButtonRecyclerView(); void onClickHiBrianLee();  }
@Test public void testOnClickButtonRecyclerView() { viewModel.onClickButtonRecyclerView(); verify(attachedActivity).startActivity(AndroidVersionsActivity.class); }