### Question:
TreeExplorerView extends Composite implements TreeExplorer.View { public TreeExplorer.View removeItem(String uuid) { final TreeItem item = tree.getItemByUuid(uuid); if (item != null) { item.remove(); } return this; } @Inject  TreeExplorerView(final Tree<TreeItem> tree);   TreeExplorerView(final TreeExplorer presenter,
                     final Tree<TreeItem> tree,
                     final HandlerRegistration handlerRegistration
    ); @Override void init(final TreeExplorer presenter); @SuppressWarnings("unchecked") TreeExplorer.View addItem(final String uuid,
                                     final String name,
                                     final IsWidget icon,
                                     final boolean isContainer,
                                     final boolean state); @SuppressWarnings("unchecked") TreeExplorer.View addItem(final String uuid,
                                     final String parentsUuid,
                                     final String name,
                                     final IsWidget icon,
                                     final boolean isContainer,
                                     final boolean state,
                                     final OptionalInt index); boolean isItemChanged(final String uuid,
                                 final String parentUuid,
                                 final String name,
                                 final int childCount,
                                 final OptionalInt indexIntoParent); @Override TreeExplorer.View clear(); TreeExplorer.View destroy(); @Override boolean isContainer(final String uuid); TreeExplorer.View setSelectedItem(final String uuid); TreeExplorer.View removeItem(String uuid);  }### Answer:
@Test public void removeItem() { when(tree.getItemByUuid(ITEM_UUID)).thenReturn(item); testedTreeExplorerView.removeItem(ITEM_UUID); verify(tree, times(1)).getItemByUuid(eq(ITEM_UUID)); verify(item, times(1)).remove(); }
@Test public void removeNoItem() { testedTreeExplorerView.removeItem(ITEM_UUID); verify(tree, times(1)).getItemByUuid(eq(ITEM_UUID)); verify(item, never()).remove(); }