boolean isWriteEnclosureForWriteField( byte[] str ) {
    return ( meta.isEnclosureForced() && !meta.isPadded() )
            || isEnclosureFixDisabledAndContainsSeparatorOrEnclosure( str );
  }
@Test
  public void testWriteEnclosureForWriteFieldWithEnclosureForced() {
    TextFileOutputData data = new TextFileOutputData();
    data.writer = new ByteArrayOutputStream();
    data.binarySeparator = new byte[1];
    TextFileOutputMeta meta = getTextFileOutputMeta();
    meta.setEnclosureForced(true);
    meta.setPadded(true);
    meta.setEnclosureFixDisabled(true);
    stepMockHelper.stepMeta.setStepMetaInterface( meta );
    TextFileOutput textFileOutput = getTextFileOutput(data, meta);
    byte[] str = new byte[1];
    assertFalse(textFileOutput.isWriteEnclosureForWriteField(str));
  }