    @Test
    public void testCanEditPreviousPeriodEndsSameTodayMinusDifferencePlusTwoExpiryDays() {

        LocalDate periodDate = new LocalDate();
        int previousPeriodStart = getPreviousPeriodStart();
        periodDate = periodDate.withMonthOfYear(
                previousPeriodStart == PREVIOUS_PERIOD_START_JANUARY ? DateTimeConstants.JANUARY
                        : DateTimeConstants.JULY).withDayOfMonth(1);
        int expiryDays = Days.daysBetween(periodDate.plusMonths(6), new LocalDate()).getDays() + 2;
        SixMonthlyExpiryDayValidator monthlyExpiryDayValidator = new SixMonthlyExpiryDayValidator(
                expiryDays,
                periodDate.toString(PATTERN) + previousPeriodStart);
        assertTrue(monthlyExpiryDayValidator.canEdit());
    }