@Test
public void testIsDateInInterval() throws Exception {

    final Date date = new GregorianCalendar(2015, GregorianCalendar.JULY, 26).getTime(); // sunday
    OpeningHoursInterval interval = new OpeningHoursInterval(5, 6, "9 - 10");// saturday - sunday
    assertTrue(interval.isDateInInterval(date));
    interval = new OpeningHoursInterval(6, "9 - 10");// only sunday
    assertTrue(interval.isDateInInterval(date));
    interval = new OpeningHoursInterval(0, 2, "9 - 10");// monday - wednesday
    assertFalse(interval.isDateInInterval(date));
}