public void testStatusAddMethod() {
Build build = new Build();
assertNull(build.getStatuses(), "Default status list should be null.");
PromotionStatus promotionStatus = new PromotionStatusBuilder(Promotion.RELEASED).repository("bla").
timestamp("bla").user("bla").build();
build.addStatus(promotionStatus);
assertFalse(build.getStatuses().isEmpty(), "Status object should have been added.");
assertEquals(build.getStatuses().get(0), promotionStatus, "Unexpected status object.");
PromotionStatus anotherPromotionStatus = new PromotionStatusBuilder(Promotion.RELEASED).repository("bla").
timestamp("bla").user("bla").build();
build.addStatus(anotherPromotionStatus);
assertEquals(build.getStatuses().size(), 2, "Second status object should have been added.");
assertEquals(build.getStatuses().get(1), anotherPromotionStatus, "Unexpected status object.");