void () { final JpsModule dep = addModule("dep"); JpsModuleRootModificationUtil.addDependency(dep, createJDomLibrary(), JpsJavaDependencyScope.COMPILE, true); JpsModuleRootModificationUtil.addDependency(myModule, dep, JpsJavaDependencyScope.TEST, true); assertClassRoots(dependencies(myModule).withoutSdk()); assertClassRoots(dependencies(myModule).withoutSdk().recursively(), getFastUtilJar()); assertClassRoots(dependencies(myModule).withoutSdk().exportedOnly().recursively(), getFastUtilJar()); assertClassRoots(dependencies(myModule).withoutSdk().productionOnly().recursively()); assertClassRoots(dependencies(myProject).withoutSdk(), getFastUtilJar()); assertClassRoots(dependencies(myProject).withoutSdk().productionOnly(), getFastUtilJar()); }