@Test
@Transactional
public void checkAdvancePercentageOrderLineWithAdvanceAssignmentWithoutMesaurement()
throws DuplicateValueTrueReportGlobalAdvanceException,
DuplicateAdvanceAssignmentForOrderElementException {
OrderLine orderLine = givenOrderLine("name", "code", 1000);
DirectAdvanceAssignment advanceAssignment = givenAdvanceAssigement(
new BigDecimal(5000), PredefinedAdvancedTypes.UNITS.getType());
orderLine.addAdvanceAssignment(advanceAssignment);
assertThat(orderLine.getAdvancePercentage(), equalTo(BigDecimal.ZERO));
}