void () { File out = new File(myRoot, "out"); JpsModule module = addModule(); JpsJavaModuleExtension extension = getJavaService().getOrCreateModuleExtension(module); extension.setExcludeOutput(true); extension.setOutputUrl(JpsPathUtil.pathToUrl(out.getAbsolutePath())); assertNotExcluded(myRoot); assertExcluded(out); assertSameElements(getModuleExcludes(module), out); extension.setExcludeOutput(false); assertNotExcluded(out); assertEmpty(getModuleExcludes(module)); }