### Question:
TreeExplorerView extends Composite implements TreeExplorer.View { public TreeExplorer.View setSelectedItem(final String uuid) { final TreeItem selectedItem = tree.getItemByUuid(uuid); tree.setSelectedItem(selectedItem, false); 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 testSetSelectedItem() { when(tree.getItemByUuid(ITEM_UUID)).thenReturn(item); testedTreeExplorerView.setSelectedItem(ITEM_UUID); verify(tree, times(1)).setSelectedItem(eq(item), eq(false)); }