### Question:
WikiTemplateManagerScript implements ScriptService { @Deprecated public boolean createWikiFromTemplate(String newWikiId, String newWikiAlias, String templateId, String ownerId, boolean failOnExist) { try { XWikiContext context = xcontextProvider.get(); authorizationManager.checkAccess(Right.PROGRAM, context.getDoc().getAuthorReference(), context.getDoc().getDocumentReference()); authorizationManager.checkAccess(Right.CREATE_WIKI, context.getUserReference(), new WikiReference(context.getMainXWiki())); wikiTemplateManager.createWikiFromTemplate(newWikiId, newWikiAlias, templateId, ownerId, failOnExist); return true; } catch (WikiTemplateManagerException e) { error("Failed to create the wiki from the template.", e); } catch (AccessDeniedException e) { error("Error, you or this script does not have the right to create a wiki from a template.", e); } return false; }  Exception getLastError(); Collection<WikiDescriptor> getTemplates(); boolean setTemplate(String wikiId, boolean value); Boolean isTemplate(String wikiId); @Deprecated boolean createWikiFromTemplate(String newWikiId, String newWikiAlias,
            String templateId, String ownerId, boolean failOnExist); @Deprecated Exception getLastException(); @Deprecated JobStatus getWikiProvisioningJobStatus(List<String> jobId); @Deprecated
    static final String CONTEXT_LASTEXCEPTION; }### Answer:
@Test public void createWikiFromTemplate() throws Exception { boolean result = mocker.getComponentUnderTest().createWikiFromTemplate("newWikiId", "newWikiAlias", "templateId", "ownerId", true); assertTrue(result); verify(wikiTemplateManager).createWikiFromTemplate("newWikiId", "newWikiAlias", "templateId", "ownerId", true); }