project.scheduleBuild2(0).get();
assert(repo.getDatastore().getCount(DbBackedBuild.class) > 0);
for(DbBackedBuild build : new DynamicBuildRepository().getBuilds(project)) {
assertNotNull(build.getParent());
assertNotNull(build.getState());
assertNotNull(build.getResult());
assertNotNull(build.getNumber());
assertNotNull(build.getCurrentBranch());