@Test
public void testGetPeriodTypeFromIsoString()
{

    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011" ).getName(), "Yearly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "201101" ).getName(), "Monthly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011W1" ).getName(), "Weekly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011W32" ).getName(), "Weekly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "20110101" ).getName(), "Daily" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011Q3" ).getName(), "Quarterly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "201101B" ).getName(), "BiMonthly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011S1" ).getName(), "SixMonthly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011AprilS1" ).getName(), "SixMonthlyApril" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011April" ).getName(), "FinancialApril" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011July" ).getName(), "FinancialJuly" );
    assertEquals( PeriodType.getPeriodTypeFromIsoString( "2011Oct" ).getName(), "FinancialOct" );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "201" ) );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "20111" ) );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "201W2" ) );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "2011Q12" ) );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "2011W234" ) );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "201er2345566" ) );
    assertNull( PeriodType.getPeriodTypeFromIsoString( "2011Q10" ) );
}