PercentageSplitter { public static String pureName(String name) { Matcher percentageMatch = splitPattern.matcher(name); return percentageMatch.find() ? percentageMatch.group(1).trim() : name; }  static String pureName(String name);  }
@Test public void pureNameTestPercentageOnly() { assertEquals("Fiasp", PercentageSplitter.pureName("Fiasp(101%)")); }
@Test public void pureNameTestPercentageAndPositiveTimeShift() { assertEquals("Fiasp", PercentageSplitter.pureName("Fiasp (101%,2h)")); }
@Test public void pureNameTestPercentageAndNegtiveTimeShift() { assertEquals("Fiasp", PercentageSplitter.pureName("Fiasp (50%,-2h)")); }