### Question:
ContextMenuView implements ContextMenu.View,
                                        HasListSelectorControl { @Override public List<ListSelectorItem> getItems(final int uiRowIndex, final int uiColumnIndex) { return presenter.getItems(); } @Inject  ContextMenuView(final ListSelector listSelector); @Override void init(final ContextMenu presenter); @Override void show(); @Override void hide(); @Override List<ListSelectorItem> getItems(final int uiRowIndex, final int uiColumnIndex); @Override void onItemSelected(final ListSelectorItem item);  }### Answer:
@Test public void testWhenGettingItemsThenTheyAreReturned() { final String textTitle = "TEXT"; final Command doNothing = () -> { }; when(presenter.getItems()).thenReturn(Collections.singletonList(ListSelectorTextItem.build(textTitle, true, doNothing))); final List<ListSelectorItem> items = contextMenuView.getItems(0, 0); final ListSelectorTextItem textItem = (ListSelectorTextItem) items.get(0); assertThat(items).isNotNull(); assertThat(items).isNotEmpty(); assertThat(items.size()).isEqualTo(1); assertThat(textItem).extracting(ListSelectorTextItem::getText).isEqualTo(textTitle); assertThat(textItem).extracting(ListSelectorTextItem::isEnabled).isEqualTo(true); assertThat(textItem).extracting(ListSelectorTextItem::getCommand).isEqualTo(doNothing); }