@@ -0,0 +1,1138 @@
+package org.javamoney.moneta.function;%0A%0Aimport org.javamoney.moneta.ExchangeRateBuilder;%0Aimport org.javamoney.moneta.spi.DefaultNumberValue;%0Aimport org.testng.annotations.Test;%0A%0Aimport javax.money.CurrencyUnit;%0Aimport javax.money.MonetaryCurrencies;%0Aimport javax.money.convert.ExchangeRate;%0Aimport javax.money.convert.RateType;%0A%0Aimport static org.testng.Assert.assertEquals;%0A%0Apublic class ExchangeRateSimpleTest %7B%0A    private static final CurrencyUnit EUR = MonetaryCurrencies.getCurrency(%22EUR%22);%0A    private static final CurrencyUnit GBP = MonetaryCurrencies.getCurrency(%22GBP%22);%0A%0A    @Test%0A    public void equalsTest() %7B%0A        DefaultNumberValue factor = new DefaultNumberValue(1.1);%0A%0A        ExchangeRate rate1 = new ExchangeRateBuilder(%22myprovider%22, RateType.ANY)%0A                .setBase(EUR)%0A                .setTerm(GBP)%0A                .setFactor(factor)%0A                .build();%0A%0A        ExchangeRate rate2 = new ExchangeRateBuilder(%22myprovider%22, RateType.ANY)%0A                .setBase(EUR)%0A                .setTerm(GBP)%0A                .setFactor(factor)%0A                .build();%0A%0A        assertEquals(rate1, rate2);%0A    %7D%0A%7D%0A

test for custom exchange rate equals