//------------------------------------------------------------------------- public virtual void test_convertedTo_explicitRate() { assertEquals(CCY_AMOUNT.convertedTo(CCY2, 2.5d), CurrencyAmount.of(CCY2, AMT1 * 2.5d)); assertEquals(CCY_AMOUNT.convertedTo(CCY1, 1d), CCY_AMOUNT); assertThrowsIllegalArg(() => CCY_AMOUNT.convertedTo(CCY1, 1.5d)); }