public void test_fetch_delete_cleans() throws Exception {
w.init();
w.touch("file1", "old");
w.git.add("file1");
w.git.commit("commit1");
<BUG>w.touch("file1", "new");
w.git.checkout().branch("other").ref(Constants.HEAD).deleteBranchIfExist(true).execute();
</BUG>
Status status = new org.eclipse.jgit.api.Git(w.repo()).status().call();
assertTrue("Workspace must be clean", status.isClean());

public void test_fetch_delete_cleans() throws Exception {
w.init();
w.touch("file1", "old");
w.git.add("file1");
w.git.commit("commit1");
w.touch("file1", "new");
checkoutTimeout = 1 + random.nextInt(60 * 60 * 24);
w.git.checkout().branch("other").ref(Constants.HEAD).timeout(checkoutTimeout).deleteBranchIfExist(true).execute();
Status status = new org.eclipse.jgit.api.Git(w.repo()).status().call();
assertTrue("Workspace must be clean", status.isClean());
