w.git.add("dir1/file1");
w.git.add("dir2/file2");
w.git.add("dir3/file3");
w.git.commit("commit");
WorkingArea workingArea = new WorkingArea();
<BUG>workingArea.git.clone_().url(w.repoPath()).execute();
workingArea.git.checkout().ref("origin/master").branch("master").deleteBranchIfExist(true).sparseCheckoutPaths(Lists.newArrayList("dir1")).execute();
</BUG>
assertTrue(workingArea.exists("dir1"));
assertFalse(workingArea.exists("dir2"));

w.git.add("dir1/file1");
w.git.add("dir2/file2");
w.git.add("dir3/file3");
w.git.commit("commit");
WorkingArea workingArea = new WorkingArea();
workingArea.git.clone_().url(w.repoPath()).execute();
checkoutTimeout = 1 + random.nextInt(60 * 60 * 24);
workingArea.git.checkout().ref("origin/master").branch("master").deleteBranchIfExist(true).sparseCheckoutPaths(Lists.newArrayList("dir1")).timeout(checkoutTimeout).execute();
assertTrue(workingArea.exists("dir1"));
assertFalse(workingArea.exists("dir2"));
