DateTimeYear extends DateTimePeriod { @Override public DateTimeDuration getDefaultSubDuration() { return DateTimeDuration.MONTH; } protected  DateTimeYear(DateTime start, DateTime end); @Override DateTimePeriod getNext(); @Override DateTimePeriod getPrevious(); @Override DateTimeDuration getDefaultSubDuration();  }
@Test public void getDefaultSubDuration() throws Exception { DateTimePeriod period0 = DateTimePeriod.createYear(2009, DateTimeZone.UTC); Assert.assertEquals(DateTimeDuration.MONTH, period0.getDefaultSubDuration()); }