AbstractModuleService implements ModuleServiceCore<T>,
                   ModuleFactory<T> { @Override public void reImport(final Path pathToPomXML) { try { final org.uberfire.java.nio.file.Path projectDirectory = Paths.convert(pathToPomXML).getParent(); final Path path = Paths.convert(projectDirectory); final Module module = resourceResolver.resolveModule(path); invalidateDMOCache.fire(new InvalidateDMOModuleCacheEvent(sessionInfo, module, path)); } catch (final Exception e) { throw ExceptionUtilities.handleException(e); } } protected  AbstractModuleService();  AbstractModuleService(final IOService ioService,
                                 final POMService pomService,
                                 final RepositoryService repoService,
                                 final Event<NewModuleEvent> newModuleEvent,
                                 final Event<NewPackageEvent> newPackageEvent,
                                 final Event<InvalidateDMOModuleCacheEvent> invalidateDMOCache,
                                 final SessionInfo sessionInfo,
                                 final CommentedOptionFactory commentedOptionFactory,
                                 final ModuleFinder moduleFinder,
                                 final ResourceResolver resourceResolver); @Override Set<Module> getAllModules(final Branch branch); @Override Package newPackage(final Package parentPackage,
                              final String packageName); @Override Path rename(final Path pathToPomXML,
                       final String newName,
                       final String comment); @Override void delete(final Path pathToPomXML,
                       final String comment); @Override void copy(final Path pathToPomXML,
                     final String newName,
                     final String comment); @Override void reImport(final Path pathToPomXML); @Override void createModuleDirectories(final Path repositoryRoot);  }
@Test public void testReImport() throws Exception { when(path.getFileName()).thenReturn("pom.xml"); when(path.toURI()).thenReturn("file: when(resourceResolver.resolveModule(any(Path.class))).thenReturn(module); abstractProjectService.reImport(path); verify(invalidateDMOCache).fire(any(InvalidateDMOModuleCacheEvent.class)); }