### Question:
WikiManagerScriptService implements ScriptService { public Collection<String> getAllIds() { Collection<String> wikis; try { wikis = wikiDescriptorManager.getAllIds(); } catch (WikiManagerException e) { error(e); wikis = new ArrayList<String>(); } return wikis; }  ScriptService get(String serviceName); Exception getLastError(); WikiDescriptor createWiki(String wikiId, String wikiAlias, String ownerId, boolean failOnExist); boolean deleteWiki(String wikiId); boolean canDeleteWiki(String userId, String wikiId); WikiDescriptor getByAlias(String wikiAlias); WikiDescriptor getById(String wikiId); Collection<WikiDescriptor> getAll(); Collection<String> getAllIds(); Boolean exists(String wikiId); Boolean idAvailable(String wikiId); WikiDescriptor getMainWikiDescriptor(); String getMainWikiId(); String getCurrentWikiId(); @Unstable WikiReference getCurrentWikiReference(); WikiDescriptor getCurrentWikiDescriptor(); boolean saveDescriptor(WikiDescriptor descriptor); boolean isPathMode(); String getAliasSuffix(); @Deprecated Exception getLastException(); static final String ROLEHINT; @Deprecated
    static final String CONTEXT_LASTEXCEPTION; }### Answer:
@Test public void getAllIds() throws Exception { Collection<String> wikiIds = Arrays.asList("wikiId1", "wikiId2"); when(wikiDescriptorManager.getAllIds()).thenReturn(wikiIds); Collection<String> result = mocker.getComponentUnderTest().getAllIds(); assertEquals(wikiIds, result); }