### Question:
TreeListItemView implements TreeListItem.View { @EventHandler("data-object-checkbox") public void onCheckboxChanged(final ChangeEvent valueChanged) { getPresenter().setIsSelected(checkbox.checked); } @Inject  TreeListItemView(final HTMLDivElement itemHeader,
                            final HTMLDivElement itemsContainer,
                            final HTMLDivElement itemDetails,
                            final HTMLDivElement expandContainer,
                            @Named("span") final HTMLElement expand,
                            final HTMLInputElement checkbox,
                            final HTMLDivElement itemRoot); TreeListItem getPresenter(); @Override void init(final TreeListItem presenter); @EventHandler("data-object-checkbox") void onCheckboxChanged(final ChangeEvent valueChanged); @EventHandler("item-header") void onClick(final ClickEvent e); void populate(final TreeListItem item); @Override HTMLElement getElement();  }### Answer:
@Test public void testOnCheckboxChanged() { final TreeListItem presenter = mock(TreeListItem.class); itemView.init(presenter); checkbox.checked = true; itemView.onCheckboxChanged(null); verify(presenter).setIsSelected(true); checkbox.checked = false; itemView.onCheckboxChanged(null); verify(presenter).setIsSelected(false); }