private boolean isJodaTime29OrLater() {
        try {
            Interval.class.getMethod("parseWithOffset", String.class);
            // We found the method. Must be Joda-time 2.9 or later.
            return true;
        } catch (NoSuchMethodException excep) {
            // Method not present. Must be Joda-time 2.8.x or earlier.
            return false;
        }
    }
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