assertEquals(wayLessInEuros, actualValue);
}
@Test
public void shouldRoundDownIfLessThanHalf() throws Exception {
CurrencyExchangeRateMap exchangeRates = new CurrencyExchangeRateMap();
exchangeRates.addExchangeRate(USD, EUR, now(), decimal("0.794"));
Money oneDollar = new Money(decimal("1.00"), USD);
Money wayLessInEuros = new Money(decimal("0.79"), EUR);
Money actualValue = oneDollar.convert(exchangeRates, EUR, now());
assertEquals(wayLessInEuros, actualValue);
}