git.add().addFilepattern("folder/a.txt").call();
git.add().addFilepattern("folder2/b.txt").call();
RevCommit c = commit(git, "first commit");
// when
PathFilter pathFilter = PathFilter.create("folder");
List<Commit> leftResult = GitCommitsModelCache.build(db,
initialTagId(), c, pathFilter);
// then
assertThat(leftResult, notNullValue());
assertThat(Integer.valueOf(leftResult.size()), is(Integer.valueOf(1)));