ExporterFileNameUtils { public static StringBuilder clean(String input) { return toCamelCase(filterSpecialChars(new StringBuilder(input)), " "); }  static StringBuilder clean(String input); static String getTimeStamp(Locale locale); static String getTimeStamp(Date timestamp, Locale locale); static StringBuilder toCamelCase(StringBuilder input, String delimiter); static StringBuilder filterSpecialChars(StringBuilder str);  }
@Test public void testTripNameCleaning() { Assert.assertEquals("Christian", ExporterFileNameUtils.clean("Christian").toString()); Assert.assertEquals("ChristianKolle", ExporterFileNameUtils.clean("Christian Kolle ").toString()); Assert.assertEquals("ChristianKlle", ExporterFileNameUtils.clean("Christian Kölle").toString()); Assert.assertEquals("GreeceWater2009", ExporterFileNameUtils.clean("Greece Water 2009").toString()); Assert.assertEquals("MyFeakyWeirdoTrip", ExporterFileNameUtils.clean("My �$%Feaky%$� Weirdo T@@@rip") .toString()); }