@Test
public void testGetDuration()
{

    Duration s50 = DateUtils.getDuration( "50s" );
    Duration m20 = DateUtils.getDuration( "20m" );
    Duration h2 = DateUtils.getDuration( "2h" );
    Duration d14 = DateUtils.getDuration( "14d" );
    assertEquals( 50, s50.getSeconds() );
    assertEquals( 1200, m20.getSeconds() );
    assertEquals( 7200, h2.getSeconds() );
    assertEquals( 1209600, d14.getSeconds() );
    assertNull( DateUtils.getDuration( "123x" ) );
    assertNull( DateUtils.getDuration( "1y" ) );
    assertNull( DateUtils.getDuration( "10ddd" ) );
}