  @Test
  public void testExtractModuleNames() throws Exception {

    final String text = IOUtils.resourceToString("jmods.out", StandardCharsets.UTF_8, StringUtilsTest.class.getClassLoader());
    final List<String> modules = StringUtils.extractJdepsModuleNames(text);
    assertArrayEquals(
        new String[] {
            "java.base",
            "java.compiler",
            "java.datatransfer",
            "java.desktop",
            "java.logging",
            "java.naming",
            "java.prefs",
            "java.scripting",
            "java.sql",
            "jdk.unsupported"
        }, modules.toArray());
  }