public boolean init( StepMetaInterface smi, StepDataInterface sdi ) {

    meta = (ReplaceStringMeta) smi;
    data = (ReplaceStringData) sdi;

    if ( super.init( smi, sdi ) ) {

      return true;
    }
    return false;
  }
@Test
  public void testSynchronizeDifferentFieldsArraysLengths() {

    ReplaceStringData data = new ReplaceStringData();
    ReplaceString replaceString =
      new ReplaceString( stepMockHelper.stepMeta, data, 0, stepMockHelper.transMeta, stepMockHelper.trans );

    ReplaceStringMeta meta = new ReplaceStringMeta();
    replaceString.init( meta, data );

    meta.setFieldInStream( new String[] { "input1", "input2" } );
    meta.setFieldOutStream( new String[] { "out" } );
    meta.setUseRegEx( new boolean[] { true } );
    meta.setCaseSensitive( new boolean[] { false } );
    meta.setWholeWord( new boolean[] { true } );
    meta.setReplaceString( new String[] { "string" } );
    meta.setReplaceByString( new String[] { "string" } );
    meta.setEmptyString( new boolean[] { true } );
    meta.setFieldReplaceByString( new String[] { "string" } );

    meta.afterInjectionSynchronization();

    assertEquals( meta.getFieldInStream().length, meta.getFieldOutStream().length );
    assertEquals( StringUtils.EMPTY, meta.getFieldOutStream()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.getUseRegEx().length );
    assertFalse( meta.getUseRegEx()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.getCaseSensitive().length );
    assertFalse( meta.getCaseSensitive()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.getWholeWord().length );
    assertFalse( meta.getWholeWord()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.getReplaceString().length );
    assertEquals( StringUtils.EMPTY, meta.getReplaceString()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.getReplaceByString().length );
    assertEquals( StringUtils.EMPTY, meta.getReplaceByString()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.isSetEmptyString().length );
    assertFalse( meta.isSetEmptyString()[ 1 ] );

    assertEquals( meta.getFieldInStream().length, meta.getFieldReplaceByString().length );
    assertEquals( StringUtils.EMPTY, meta.getFieldReplaceByString()[ 1 ] );
  }