### Question:
LabelViewHolder extends RecyclerView.ViewHolder { void setData(LabelInfo label) { viewModel.setLabel(label); binding.executePendingBindings(); } LabelViewHolder(View itemView, ViewDataBinding binding, LabelViewModel viewModel);   }### Answer:
@Test public void testSetData() { holder.setData(labelInfo); verify(viewModel).setLabel(labelInfo); verify(binding).executePendingBindings(); }