@Test
public void testCreatePeriodFromISOString()
{

    String isoPeriod = "201001";
    String alternativeIsoPeriod = "201001";
    
    Period period1 = periodType.createPeriod( isoPeriod );
    Period period2 = periodType.createPeriod( alternativeIsoPeriod );
    
    testDate = new DateTime( period1.getStartDate());
    assertEquals( 2010, testDate.getYear() );
    assertEquals( 1, testDate.getMonthOfYear() );
    
    testDate = new DateTime( period2.getStartDate());
    assertEquals( 2010, testDate.getYear() );
    assertEquals( 1, testDate.getMonthOfYear() );        
}