### Question:
KieModuleServiceImpl extends AbstractModuleService<KieModule> implements KieModuleFactory,
                   org.kie.workbench.common.services.shared.project.KieModuleService { @Override public Package resolvePackage(final Module activeModule, final String packageName) { final org.uberfire.java.nio.file.Path convert = Paths.convert(activeModule.getRootPath()); final String replace = packageName.replace(".", "/"); return resourceResolver.resolvePackage(Paths.convert(convert.resolve(MAIN_RESOURCES_PATH).resolve(replace))); } KieModuleServiceImpl(); @Inject  KieModuleServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final ModuleSaver moduleSaver,
                                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 PackageServiceLoader packageServiceLoader,
                                final KieResourceResolver resourceResolver,
                                final ModuleRepositoryResolver repositoryResolver); @Override KieModule newModule(final Path repositoryPath,
                               final POM pom); @Override KieModule newModule(final Path repositoryPath,
                               final POM pom,
                               final DeploymentMode mode); @Override KieModulePackages resolveModulePackages(Module activeModule); @Override Package resolvePackage(final Module activeModule,
                                  final String packageName); @Override Set<Package> resolvePackages(final Module activeModule,
                                        final Set<String> packageNames); @Override KieModule simpleModuleInstance(final org.uberfire.java.nio.file.Path nioModuleRootPath); @Override KieModule resolveModule(final Path resource); @Override KieModule resolveModule(Path resource, boolean loadPOM); @Override Module resolveParentModule(final Path resource); @Override Module resolveToParentModule(final Path resource); @Override Set<Package> resolvePackages(final Module project); @Override Set<Package> resolvePackages(final Package pkg); @Override Package resolveDefaultPackage(final Module project); @Override Package resolveDefaultWorkspacePackage(final Module project); @Override Path resolveDefaultPath(final Package pkg,
                                   final String resourceType); @Override Package resolveParentPackage(final Package pkg); @Override boolean isPom(final Path resource); @Override Package resolvePackage(final Path resource);  }### Answer:
@Test public void testResolvePackage() { final Package pkg = new Package(); doReturn(new HashSet<>()).when(packageServiceLoader).find(rootPath); doReturn(pkg).when(resourceResolver).resolvePackage(any()); final Package resolvedPackage = moduleService.resolvePackage(activeModule, "org.test"); assertNotNull(resolvedPackage); }