private void testOverflow(String edgeCase, boolean successExpected) {
        try {
            Date parsed = DateUtils.parseISO8601Date(edgeCase);
            if (!successExpected) {
                // We should have failed!
                fail("Unexpected success: " + edgeCase + " --> " + parsed);
            }
        } catch (IllegalArgumentException ex) {
            if (successExpected) {
                fail("Unexpected failure: " + edgeCase);
            }
        }
    }
Detect whether we are joda-time 2.9 or later. This is important because some tests test a bug that was fixed
in 2.9. We test for a method named Interval.parseWithOffset(String); that was added in 2.9.

@return true if we are 2.9 or later, false if not.
aws-java-sdk-core/src/test/java/com/amazonaws/util/DateUtilsTest.java