// | o - commit9
// |
// o - commit10
// |
// o - commit11
ObjectId rootId = ObjectId.forString("root commit");
ImmutableList<ObjectId> parents = ImmutableList.of();
database.put(rootId, parents);
ObjectId commit1 = ObjectId.forString("commit1");
parents = ImmutableList.of(rootId);
database.put(commit1, parents);
ObjectId commit2 = ObjectId.forString("commit2");
parents = ImmutableList.of(commit1);
database.put(commit2, parents);
ObjectId commit3 = ObjectId.forString("commit3");
parents = ImmutableList.of(commit2);
database.put(commit3, parents);
ObjectId commit4 = ObjectId.forString("commit4");
parents = ImmutableList.of(commit3);
database.put(commit4, parents);
ObjectId commit5 = ObjectId.forString("commit5");
parents = ImmutableList.of(commit3);
database.put(commit5, parents);
ObjectId commit6 = ObjectId.forString("commit6");
parents = ImmutableList.of(commit5, commit4);
database.put(commit6, parents);
ObjectId commit7 = ObjectId.forString("commit7");
parents = ImmutableList.of(rootId);
database.put(commit7, parents);
ObjectId commit8 = ObjectId.forString("commit8");
parents = ImmutableList.of(commit2);
database.put(commit8, parents);
ObjectId commit9 = ObjectId.forString("commit9");
parents = ImmutableList.of(commit7, commit8);
database.put(commit9, parents);
ObjectId commit10 = ObjectId.forString("commit10");
parents = ImmutableList.of();
database.put(commit10, parents);
ObjectId commit11 = ObjectId.forString("commit11");
parents = ImmutableList.of(commit10);
database.put(commit11, parents);
System.out.println("Testing depth");
assertEquals(0, database.getDepth(rootId));