ContentEntry (String moduleName) { ContentEntry[] ee = getContentRoots(moduleName); List<String> roots = new ArrayList<>(); for (ContentEntry e : ee) { roots.add(e.getUrl()); } String message = "Several content roots found: [" + StringUtil.join(roots, ", ") + "]"; assertEquals(message, 1, ee.length); return ee[0]; }