@Test
public void testMatches_excludePath() {

  // - preparation
  final Path root= Paths.get("/my/root/");
  final String[] includes= {
    "sub/*.properties"
  };
  final String[] excludes= {
    "sub/ex.properties"
  };
  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/ex.properties"))).isFalse();
  assertThat(fileMatcher.matches(Paths.get("/my/root/sub/other.properties"))).isTrue();
}