assertFalse(p.scheduleBuild(new SCMTriggerCause("First poll")));
assertFalse(p.scheduleBuild(new SCMTriggerCause("Second poll")));
assertFalse(p.scheduleBuild(new SCMTriggerCause("Third poll")));
// Wait for 2nd build to finish
buildShouldComplete.signal();
FreeStyleBuild build = fb.get();
List<BuildAction> ba = build.getActions(BuildAction.class);
assertFalse("There should only be one BuildAction.", ba.size()!=1);