@Test
public void testGetFileBaseName() {

    assertNull(Tools.getFileBaseName(null));
    assertEquals("file", Tools.getFileBaseName("file"));
    assertEquals("file", Tools.getFileBaseName("file.txt"));
    assertEquals("file", Tools.getFileBaseName("file."));
    assertEquals("", Tools.getFileBaseName(".txt"));
    assertEquals("", Tools.getFileBaseName("."));
    assertEquals("image.txt", Tools.getFileBaseName("image.txt.jpg"));
    assertEquals("some thing with spaces", Tools.getFileBaseName("some thing with spaces.extension"));
}