### Question:
JpsModelUtil { public static Set<File> getExcludedRoots(final JpsModule jpsModule) { final JpsUrlList excludedRootsAsUrls = jpsModule.getExcludeRootsList(); final Set<File> excludedRootsAsFiles = new HashSet<File>(excludedRootsAsUrls.getUrls().size()); for (final String url : excludedRootsAsUrls.getUrls()) { excludedRootsAsFiles.add(JpsPathUtil.urlToFile(url)); } return excludedRootsAsFiles; }  static boolean isBuildWithCloverEnabled(@NotNull final JpsProject jpsProject); static boolean isCloverEnabled(@NotNull final JpsProject jpsProject); static boolean isDumpInstrumentedSources(@NotNull final JpsProject jpsProject); @Nullable static CloverPluginConfig getCloverPluginConfig(@NotNull final JpsProject jpsProject); @Nullable static JpsModuleSourceRoot findSourceRootForFile(final @NotNull JpsModule module,
                                                            final @NotNull File sourceFile); @Nullable static JpsModule findModuleForFile(final JpsProject project, final File sourceFile); static Set<File> getExcludedRoots(final JpsModule jpsModule);  }### Answer:
@Test public void testGetExcludedRoots() { final JpsModule module = factory.createModule("ModuleA", JpsJavaModuleType.INSTANCE, factory.createDummyElement()); module.getExcludeRootsList().addUrl("file: module.getExcludeRootsList().addUrl("file: final Set<File> excludedRoots = JpsModelUtil.getExcludedRoots(module); assertEquals(2, excludedRoots.size()); assertThat(excludedRoots, IsCollectionContaining.hasItem(new File( FileUtils.getPlatformSpecificPath("Project/ModuleA/src/excluded")))); assertThat(excludedRoots, IsCollectionContaining.hasItem(new File( FileUtils.getPlatformSpecificPath("Project/ModuleA/src/excluded2")))); assertThat(excludedRoots, not(IsCollectionContaining.hasItem(new File( FileUtils.getPlatformSpecificPath("Project/not/on/excluded/list"))))); }