@Test
public void testParser()
{

    try 
    {
        period = AdxPeriod.parse( "2015-01-01/P1Y" );
        assertEquals( "2015", period.getIsoDate() );
        period = AdxPeriod.parse( "2015-01-01/P1M" );
        assertEquals( "201501", period.getIsoDate() );
        period = AdxPeriod.parse( "2015-01-01/P1D" );
        assertEquals( "20150101", period.getIsoDate() );
        period = AdxPeriod.parse( "2015-01-01/P3M" );
        assertEquals( "2015Q1", period.getIsoDate() );
        period = AdxPeriod.parse( "2015-04-01/P3M" );
        assertEquals( "2015Q2", period.getIsoDate() );
        period = AdxPeriod.parse( "2015-01-01/P7D" );
        assertEquals( "2015W1", period.getIsoDate() );
        period = AdxPeriod.parse( "2015-01-05/P7D" );
        assertEquals( "2015W2", period.getIsoDate() );
    }
    catch ( AdxException ex)
    {
        fail(ex.getMessage());
    }
}