### Question:
ComponentsVm { @Command public void configureComponent() { selectedEntity.setEntity(selected); EditComponentVm.openWindowForEdit(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 configureComponent() { componentsVm.configureComponent(); verify(windowManager).open(EditComponentVm.EDIT_COMPONENT_LOCATION); }
@Test public void configureComponent_selectedComponentSet() { Component selected = givenSelectedComponent(); componentsVm.configureComponent(); assertEquals(selectedEntity.getEntity(), selected); }