@Test
public void testGetExclusiveExtension() {

    assertEquals( "foo", FileUtils.getFilename( new File( "/tmp/foo.txt" ) ) );
    assertEquals( "foo.bar", FileUtils.getFilename( new File( "/tmp/foo.bar.txt" ) ) );
    assertEquals( "foo.bar", FileUtils.getFilename( new File( "/tmp/foo.bar." ) ) );
    assertEquals( "foo", FileUtils.getFilename( new File( "/tmp/foo" ) ) );
    assertEquals( "foo", FileUtils.getFilename( new File( "/tmp.dir/foo" ) ) );
    assertEquals( "", FileUtils.getFilename( new File( "" ) ) );
}