@Override
  public String toLocalizedPattern() {
    if ( compatibleToSuperPattern ) {
      return super.toLocalizedPattern();
    } else {
      StringBuffer pattern =
        new StringBuffer( super.toLocalizedPattern() );
      int placeholderPosition = replaceHolder( pattern, true );
      for ( int i = placeholderPosition; i <= endNanosecondPatternPosition - startNanosecondPatternPosition + placeholderPosition; i++ ) {
        pattern.insert( i, patternNanosecond );
      }
      return pattern.toString();
    }

  }
@Test
  public void testToLocalizedPattern() {
    for ( Locale locale : locales ) {
      Locale.setDefault( Locale.Category.FORMAT, locale );
      tdb = ResourceBundle.getBundle( "org/pentaho/di/core/row/value/timestamp/messages/testdates", locale );
      SimpleTimestampFormat stf = new SimpleTimestampFormat( new SimpleDateFormat().toPattern() );
      assertEquals( locale.toLanguageTag(), tdb.getString( "PATTERN.LOCALE.COMPILED" ), stf.toLocalizedPattern() );
      String patternExample = tdb.getString( "PATTERN.KETTLE" );
      stf = new SimpleTimestampFormat( patternExample );
      assertEquals( locale.toLanguageTag(), tdb.getString( "PATTERN.LOCALE.COMPILED_DATE" ), stf.toLocalizedPattern() );
    }
  }