### Question:
CompilerClassloaderUtils { public static Optional<ClassLoader> getClassloaderFromProjectTargets(List<String> pomsPaths) { List<URL> urls = getTargetModulesURL(pomsPaths); return buildResult(urls); } private  CompilerClassloaderUtils(); static Optional<ClassLoader> getClassloaderFromAllDependencies(String prjPath,
                                                                          String localRepo,
                                                                          String settingsXmlPath); static Map<String, byte[]> getMapClasses(String path,
                                                    Map<String, byte[]> store); static Predicate<File> filterClasses(); static Optional<ClassLoader> loadDependenciesClassloaderFromProject(String prjPath,
                                                                               String localRepo); static Optional<ClassLoader> loadDependenciesClassloaderFromProject(List<String> poms,
                                                                               String localRepo); static Optional<ClassLoader> getClassloaderFromProjectTargets(List<String> pomsPaths); static List<URL> buildUrlsFromArtifacts(String localRepo,
                                                   List<Artifact> artifacts); static List<URL> getDependenciesURL(List<String> poms,
                                               String localRepo); static List<URL> getTargetModulesURL(List<String> pomsPaths); static Optional<ClassLoader> createClassloaderFromStringDeps(List<String> depsProject); static List<URL> readAllDepsAsUrls(List<String> prjDeps); static List<URI> readAllDepsAsUris(List<String> prjDeps); static List<String> readItemsFromClasspathString(Set<String> depsModules); static List<String> getStringFromTargets(Path prjPath); static List<String> getStringFromTargetWithStream(Path pathIn,
                                                             String... extensions); static List<URI> processScannedFilesAsURIs(List<String> classPathFiles); static List<URL> processScannedFilesAsURLs(List<String> classPathFiles); static Set<String> filterPathClasses(Collection<String> paths,
                                                String mavenRepoPath); static List<String> filterClassesByPackage(Collection<String> items,
                                                      String packageName); static Class<?> getClass(String pkgName,
                                    String className,
                                    ClassLoader classloader);  }### Answer:
@Test public void getClassloaderFromProjectTargets() { List<String> pomList = MavenUtils.searchPoms(tmpRoot); Optional<ClassLoader> classLoader = CompilerClassloaderUtils.getClassloaderFromProjectTargets(pomList); assertThat(classLoader).isPresent(); }