@Test
public void getGetPartitionsLongPeriods()
{

    Period period = new Period();
    period.setStartDate( new DateTime( 2008, 3, 1, 0, 0 ).toDate() );
    period.setEndDate( new DateTime( 2011, 7, 1, 0, 0 ).toDate() );
    Partitions expected = new Partitions( Sets.newHashSet( 2008, 2009, 2010, 2011 ) );
    assertEquals( expected, PartitionUtils.getPartitions( period ) );
    period = new Period();
    period.setStartDate( new DateTime( 2009, 8, 1, 0, 0 ).toDate() );
    period.setEndDate( new DateTime( 2010, 2, 1, 0, 0 ).toDate() );
    expected = new Partitions( Sets.newHashSet( 2009, 2010 ) );
    assertEquals( expected, PartitionUtils.getPartitions( period ) );
}