@Test public void testForLoop() { MonetaryAmount total = Money.of(0, euro); for (int index = 0; index < items.size(); index++) { total = total.add(items.get(index).getPrice().multiply(amounts.get(index))); } assertThat(total).hasToString("EUR 109.75"); }