public static class One_Dollar_Converted_Into_Euros {
@Test
public void shouldBeWhateverTheExchangeRateIs() throws Exception {
CurrencyExchangeRateMap exchangeRates = new CurrencyExchangeRateMap();
exchangeRates.addExchangeRate(USD, EUR, now(), decimal("0.79"));
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);
}