@Test
public void testToUnderscoreCase() throws Exception
{

    assertEquals("foo_bar_baz", toUnderscoreCase("foo_bar_baz").toString());
    assertEquals("foo_bar_baz", toUnderscoreCase("fooBarBaz").toString());
    assertEquals("foo_bar_baz", toUnderscoreCase("FooBarBaz").toString());
    assertEquals("foo_bar_baz", toUnderscoreCase("foo_bar_baz").toString());
    assertEquals("foo_bar_baz", toUnderscoreCase("____Foo____Bar___Baz____").toString());
}