@Test
public void testGetBasePath() {

    assertThat(FileNameUtil.getParentPath("classpath:/visualization/DOT.stg"), Matchers.is("classpath:/visualization/"));
    assertThat(FileNameUtil.getParentPath("classpath:/application.properties"), Matchers.is("classpath:/"));
    assertThat(FileNameUtil.getParentPath("/home/user/project/x.txt"), endsWith("home" + File.separator + "user" + File.separator + "project" + File.separator));
    assertThat(FileNameUtil.getParentPath("build.gradle"), endsWith(File.separator));
}