@Test
public void testGenerateLast5Years()
{

    testDate = new DateTime( 2009, 8, 15, 0, 0 );
    List<Period> periods = periodType.generateLast5Years( testDate.toDate() );
    assertEquals( 20, periods.size() );
    assertEquals( periodType.createPeriod( new DateTime(  2005, 1, 1, 0, 0 ).toDate() ), periods.get( 0 ) );
    assertEquals( periodType.createPeriod( new DateTime(  2005, 4, 1, 0, 0 ).toDate() ), periods.get( 1 ) );
    assertEquals( periodType.createPeriod( new DateTime(  2005, 7, 1, 0, 0 ).toDate() ), periods.get( 2 ) );
    assertEquals( periodType.createPeriod( new DateTime(  2005, 10, 1, 0, 0 ).toDate() ), periods.get( 3 ) );
}