### Question:
DecisionNavigatorTreePresenter { public DecisionNavigatorItem getActiveParent() { return getIndexedItems().get(activeParentUUID); } @Inject  DecisionNavigatorTreePresenter(final View view); View getView(); void setupItems(final List<DecisionNavigatorItem> items); void removeAllItems(); DecisionNavigatorItem getActiveParent(); void setActiveParentUUID(final String activeParentUUID); void selectItem(final String uuid); void deselectItem();  }### Answer:
@Test public void testGetActiveParent() { final DecisionNavigatorItem expectedItem = mock(DecisionNavigatorItem.class); final String uuid = "uuid"; when(indexedItems.get(uuid)).thenReturn(expectedItem); presenter.setActiveParentUUID(uuid); final DecisionNavigatorItem actualItem = presenter.getActiveParent(); assertEquals(expectedItem, actualItem); }