@Test
public void testGetMediumDateString()
{

    Date date = new DateTime( 2014, 5, 18, 15, 10, 5, 12 ).toDate();
    assertEquals( "2014-05-18", DateUtils.getMediumDateString( date ) );
    assertNull( DateUtils.getMediumDateString( null ) );
}