void () { JpsModuleRootModificationUtil.addDependency(myModule, createJDomLibrary()); final String srcRoot = addSourceRoot(myModule, false); final String testRoot = addSourceRoot(myModule, true); final String output = setModuleOutput(myModule, false); final String testOutput = setModuleOutput(myModule, true); assertClassRoots(getJavaService().enumerateDependencies(Collections.singletonList(myModule)).withoutSdk(), testOutput, output, getFastUtilJar()); assertSourceRoots(getJavaService().enumerateDependencies(Collections.singletonList(myModule)).withoutSdk(), srcRoot, testRoot, getFastUtilSources()); }