public static String[] getNumberFormats() {
    if ( numberFormats == null ) {
      int numberFormatsCount = toInt( BaseMessages.getString( PKG, "Const.NumberFormat.Count" ), 0 );
      numberFormats = new String[numberFormatsCount + 1];
      numberFormats[0] = DEFAULT_NUMBER_FORMAT;
      for ( int i = 1; i <= numberFormatsCount; i++ ) {
        numberFormats[i] = BaseMessages.getString( PKG, "Const.NumberFormat" + Integer.toString( i ) );
      }
    }
    return numberFormats;
  }
@Test
  public void testGetNumberFormats() {
    final String[] formats = Const.getNumberFormats();
    assertTrue( formats.length > 0 );
    for ( String format : formats ) {
      assertTrue( format != null && !format.isEmpty() );
    }
  }