public DateCache() {
    cache = new HashMap<String, Date>();
  }
@SuppressWarnings( "deprecation" )
  @Test
  public void testDateCache() {
    DateCache cache = new DateCache();
    cache.populate( "yyyy-MM-dd", 2016, 2016 );
    assertEquals( 366, cache.getSize() ); // Leap year
    assertEquals( Calendar.FEBRUARY, cache.lookupDate( "2016-02-29" ).getMonth() );
    assertEquals( 29, cache.lookupDate( "2016-02-29" ).getDate() );
    assertEquals( ( 2016 - 1900 ), cache.lookupDate( "2016-02-29" ).getYear() );
  }