@Test
public void testIntersectsWith_containedInIntersectingRange() {

    final Date startDate = createDate(2010, 5, 1, 0, 0, 0);
    final Date endDate = createDate(2010, 5, 31, 23, 59, 59);
    final TimeRange timeRange = new TimeRange(startDate, endDate);
    Date compareStart = createDate(2010, 2, 1, 0, 0, 0);
    Date compareStop = createDate(2010, 7, 31, 23, 59, 59);
    TimeRange containing = new TimeRange(compareStart, compareStop);
    assertTrue(timeRange.intersectsWith(containing));
}