@Before public void setup() { when(activeContextItems.getActiveOrganizationalUnit()).thenReturn(organizationalUnit); when(activeContextItems.getActiveRepository()).thenReturn(repository); when(view.getExplorer()).thenReturn(explorer); }