public static String[] getDateFormats() {
    if ( dateFormats == null ) {
      int dateFormatsCount = toInt( BaseMessages.getString( PKG, "Const.DateFormat.Count" ), 0 );
      dateFormats = new String[dateFormatsCount];
      for ( int i = 1; i <= dateFormatsCount; i++ ) {
        dateFormats[i - 1] = BaseMessages.getString( PKG, "Const.DateFormat" + Integer.toString( i ) );
      }
    }
    return dateFormats;
  }
@Test
  public void testGetDateFormats() {
    final String[] formats = Const.getDateFormats();
    assertTrue( formats.length > 0 );
    for ( String format : formats ) {
      assertTrue( format != null && !format.isEmpty() );
    }
  }