byte[] removeEscapedEnclosures( byte[] field, int nrEnclosuresFound ) {
    byte[] result = new byte[field.length - nrEnclosuresFound];
    int resultIndex = 0;
    for ( int i = 0; i < field.length; i++ ) {
      result[resultIndex++] = field[i];
      if ( field[i] == enclosure[0] && i + 1 < field.length && field[i + 1] == enclosure[0] ) {
        // Skip the escaped enclosure after adding the first one
        i++;
      }
    }
    return result;
  }
@Test
  public void testRemoveEscapedEnclosuresWithOneByItself() {
    CsvInputData csvInputData = new CsvInputData();
    csvInputData.enclosure = "\"".getBytes();
    String result = new String( csvInputData.removeEscapedEnclosures( "\"\"".getBytes(), 1 ) );
    assertEquals( "\"", result );
  }