Formatter { public static String toUnderscoreCase(String source) { return toUnderscoreCaseImpl(source).toString(); } private  Formatter(); static String toUpperCase(String source); static String toLowerCase(String source); static String toCamelCase(String source); static String toUnderscoreCase(String source); static String toPascalCase(String source);  }
@Test public void testToUnderscoreCase() throws Exception { assertEquals("some_foo", Formatter.toUnderscoreCase("someFoo")); assertEquals("some_foo", Formatter.toUnderscoreCase("SomeFoo")); }