### Question:
ComponentsVm { @Command public void addNewJcommune() { selectedEntity.setEntity(componentService.baseComponentFor(ComponentType.FORUM).newComponent(DEFAULT_NAME, DEFAULT_DESCRIPTION)); AddComponentVm.openWindowForAdding(windowManager); } ComponentsVm(final ComponentService componentService, final WindowManager windowManager,
            final SelectedEntity<Component> selectedEntity, final ComponentList componentsToBeNotified); Component getPoulpe(); boolean isPoulpeVisible(); Component getJcommune(); boolean isJcommuneVisible(); @Command void deleteComponent(); @Command void reindexComponent(); @Command void addNewPoulpe(); @Command void addNewJcommune(); @Command void configureComponent(); @Command final void backupDatabase(); void setSelected(final Component selected); static void show(final WindowManager windowManager); boolean isJcommuneAvailable(); boolean isShowReindexStartedNotification(); final void setFileDownloadService(final FileDownloadService fileDownloadService); static final String SHOW_REINDEX_START_NOTIFICATION; static final String COMPONENTS_PAGE_LOCATION; }### Answer:
@Test public void addNewJcommune() { ComponentBase componentBase = new ComponentBase(ComponentType.FORUM); doReturn(componentBase).when(componentService).baseComponentFor(ComponentType.FORUM); componentsVm.addNewJcommune(); verify(windowManager).open(AddComponentVm.ADD_COMPONENT_LOCATION); }