void (Project project, String moduleName, String... expected) { final Module fooModule = getModule(project, moduleName); final ContentEntry[] contentRoots = ModuleRootManager.getInstance(fooModule).getContentEntries(); String rootUrl = contentRoots.length > 1 ? ExternalSystemApiUtil.getExternalProjectPath(fooModule) : null; doAssertContentFolders(rootUrl, contentRoots, JavaSourceRootType.TEST_SOURCE, expected); }