OrderElement orderElement = givenOrderLineGroupWithTwoOrderLines(1000,
2000);
List<OrderElement> children = orderElement.getChildren();
AdvanceType advanceType1 = AdvanceType.create("test1", new BigDecimal(
10000), true, new BigDecimal(1), true, false);
addAvanceAssignmentWithMeasurement(children.get(0), advanceType1,
new BigDecimal(1000), new BigDecimal(400), true);
AdvanceType advanceType2 = AdvanceType.create("test2", new BigDecimal(
10000), true, new BigDecimal(1), true, false);
addAvanceAssignmentWithMeasurement(children.get(1), advanceType2,
new BigDecimal(2000), new BigDecimal(200), true);
Set<IndirectAdvanceAssignment> indirectAdvanceAssignments = ((OrderLineGroup) orderElement)