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