String () { String[] split = getTestName(true) .replaceFirst("test", "") .split(" "); String joined = Arrays.stream(split) .map(s -> StringGroovyMethods.capitalize(s)) .collect(Collectors.joining()); return StringGroovyMethods.uncapitalize(joined); }