* @throws ExecutionException if so.
* @throws IOException if so.
*/
public void testInitProjectBuild() throws InterruptedException, ExecutionException, IOException {
AbstractProject project = createFreeStyleProject("myProject");
AbstractBuild build = (AbstractBuild)project.scheduleBuild2(0, new UserCause()).get();
TriggeredItemEntity wrap = new TriggeredItemEntity(project, build);
assertEquals(project.getFullName(), wrap.getProjectId());
assertEquals(build.getNumber(), wrap.getBuildNumber().intValue());
}