assertEquals(new Money("125"), calculationResponse(option, createCandidateOrder(new BigDecimal("18.00"), 6, new String[] { "5", "100", "20" }, null, option)));
assertEquals(new Money("41"), calculationResponse(option, createCandidateOrder(new BigDecimal("60.00"), 6, new String[] { "8", "2", "1" }, null, option)));
}
public void testWeightBandsWithQuantities() throws Exception {
BandedWeightFulfillmentOption option = createWeightBands(new String[] { "50", "100", "65" },
new String[] { "30", "20", "10" },
new FulfillmentBandResultAmountType[] { FulfillmentBandResultAmountType.RATE,
FulfillmentBandResultAmountType.RATE,
FulfillmentBandResultAmountType.RATE });