boolean isWriteEnclosed( ValueMetaInterface v ) {
    return meta.isEnclosureForced() && data.binaryEnclosure.length > 0 && v != null && v.isString();
  }
@Test
  public void testWriteEnclosed() {
    TextFileOutputData data = new TextFileOutputData();
    data.binaryEnclosure = new byte[1];
    data.writer = new ByteArrayOutputStream();
    TextFileOutputMeta meta = getTextFileOutputMeta();
    meta.setEnclosureForced(true);
    stepMockHelper.stepMeta.setStepMetaInterface( meta );
    TextFileOutput textFileOutput = getTextFileOutput(data, meta);
    ValueMetaBase valueMetaInterface = getValueMetaInterface();
    valueMetaInterface.setType(ValueMetaInterface.TYPE_NUMBER);
    assertFalse(textFileOutput.isWriteEnclosed(valueMetaInterface));
    assertFalse(textFileOutput.isWriteEnclosed(null));
  }