public virtual void test_of_invalid_conventionForPeriod()
        {
            Period period = Period.of(1, 2, 3);

            assertThrowsIllegalArg(() => PeriodAdjustment.of(period, LAST_DAY, BDA_NONE));
            assertThrowsIllegalArg(() => PeriodAdjustment.of(period, LAST_BUSINESS_DAY, BDA_NONE));
            assertThrowsIllegalArg(() => PeriodAdjustment.ofLastDay(period, BDA_NONE));
            assertThrowsIllegalArg(() => PeriodAdjustment.ofLastBusinessDay(period, BDA_NONE));
        }
        public virtual void test_ofLastBusinessDay()
        {
            PeriodAdjustment test = PeriodAdjustment.ofLastBusinessDay(Period.ofMonths(3), BDA_FOLLOW_SAT_SUN);

            assertEquals(test.Period, Period.ofMonths(3));
            assertEquals(test.AdditionConvention, LAST_BUSINESS_DAY);
            assertEquals(test.Adjustment, BDA_FOLLOW_SAT_SUN);
            assertEquals(test.ToString(), "P3M with LastBusinessDay then apply Following using calendar Sat/Sun");
        }