@Test
public void testMatches_canonicalizePaths() {

  // - preparation
  final Path root= Paths.get("/my/root/");
  final String[] includes= {
    "sub/my.properties"
  };
  final String[] excludes= {
  };
  final FileMatcher fileMatcher= new FileMatcher(root, includes, excludes);
  // - execution && verification
  assertThat(fileMatcher.matches(Paths.get("/my/root/sub/my.properties"))).isTrue();
  assertThat(fileMatcher.matches(Paths.get("/my//root//sub//my.properties"))).isTrue();
  assertThat(fileMatcher.matches(Paths.get("/my/root/../root/sub/my.properties"))).isTrue();
}