public virtual void test_ofPresentValue_Currency()
        {
            CashFlow test = CashFlow.ofPresentValue(PAYMENT_DATE, GBP, PRESENT_VALUE, DISCOUNT_FACTOR);

            assertThat(test.PaymentDate).isEqualTo(PAYMENT_DATE);
            assertThat(test.PresentValue).hasCurrency(GBP);
            assertThat(test.PresentValue).hasAmount(PRESENT_VALUE, TOLERANCE);
            assertThat(test.ForecastValue).hasCurrency(GBP);
            assertThat(test.ForecastValue).hasAmount(FORECAST_VALUE, TOLERANCE);
            assertThat(test.DiscountFactor).isCloseTo(DISCOUNT_FACTOR, TOLERANCE);
        }