### Question:
GlobalUtils { public static String validFileName(final String input) { if (Strings.isNullOrEmpty(input)) { return null; } final String myInput = DOT_PATTERN.matcher(input).replaceAll("-"); return CharMatcher.inRange('a', 'z') .or(CharMatcher.inRange('0', '9')) .or(CharMatcher.inRange('A', 'Z')) .or(CharMatcher.is('_')) .or(CharMatcher.is('-')) .retainFrom(myInput); } private  GlobalUtils(); static String replacePlaceholders(final String input, final String placeholder, final String replacement); static String readStreamAsText(final InputStream stream); static void populateDirectories(final Path startPath, final List<Path> existing); static StringBuilder readTextFile(final Path path); static void writeToFile(final CharSequence content, final Path path); static String createMethodName(final String name); static String createClassName(final String input); static String getNamespacePrefix(final String fullName); static String getNameAfterPrefix(final String fullName); @SuppressWarnings("HippoHstCallNodeRefreshInspection") static void refreshSession(final Session session, final boolean keepChanges); static Session createSession(); static void cleanupSession(final Session session); static T newInstance(final Class<T> clazz); @SuppressWarnings("unchecked") static T newInstance(final String className); static Class<?> loadCLass(final String clazz); static String decodeUrl(final String url); static String validFileName(final String input); static boolean marshalWriter(final Writer writer, final Document document); @SuppressWarnings("unchecked") static T unmarshalStream(final InputStream stream, final Class<T> clazz);  }### Answer:
@Test public void testValidFileName() throws Exception { final String myFileName = GlobalUtils.validFileName(getClass().getName()); assertEquals(CLASS_NAME_EXPECTED, myFileName); }