### Question:
StringUtils extends org.springframework.util.StringUtils { public static String getPatternRoot(String pattern) { if (pattern == null) { return null; } int doubleAsterisk = pattern.indexOf("**"); if (doubleAsterisk != -1) { return pattern.substring(0, doubleAsterisk); } return getFileDirectory(pattern); }  static String getSeparator(); static String getFileDirectory(String filePath); static String getPatternRoot(String pattern); static String getArtifactId(String jarShotName); static String formatBySpace(String formatString, int digit, boolean front);  }### Answer:
@Test public void testGetPatternRoot() { String[] strs = { "/org/webframe*.class", "/org/webframe/**", "/org/webframe"}; for (String string : strs) { System.out.println("testGetPatternRoot(): " + string + " <==> " + StringUtils.getPatternRoot(string)); } }