LocalDate two = new LocalDate(2009, 9, 2);
LocalDate three = new LocalDate(2009, 9, 3);
LocalDate four = new LocalDate(2009, 9, 4);
LocalDate five = new LocalDate(2009, 9, 5);
AdvanceType advanceType1 = AdvanceType.create("test1", new BigDecimal(
10000), true, new BigDecimal(1), true, false);
addAvanceAssignmentWithMeasurements(children.get(0), advanceType1,
true, new BigDecimal(1000), one, new BigDecimal(200), three,
new BigDecimal(400), five, new BigDecimal(500));
AdvanceType advanceType2 = AdvanceType.create("test2", new BigDecimal(
10000), true, new BigDecimal(1), true, false);
addAvanceAssignmentWithMeasurements(children.get(1), advanceType2,
true, new BigDecimal(1000), two, new BigDecimal(100), three,
new BigDecimal(350), four, new BigDecimal(400));
assertThat(orderElement.getAdvancePercentage(),