private void doQueryEscapeTest(String data) throws StorageException {
    TableRequestOptions options = new TableRequestOptions();

    options.setTablePayloadFormat(TablePayloadFormat.JsonFullMetadata);
    doQueryEscapeTestHelper(data, options);

    options.setTablePayloadFormat(TablePayloadFormat.Json);
    doQueryEscapeTestHelper(data, options);

    options.setTablePayloadFormat(TablePayloadFormat.JsonNoMetadata);
    doQueryEscapeTestHelper(data, options);

    options.setTablePayloadFormat(TablePayloadFormat.JsonNoMetadata);
    options.setPropertyResolver(new Class1());
    doQueryEscapeTestHelper(data, options);
  }
  private void doEscapeTest(String data, boolean useBatch, boolean includeInKey)
      throws StorageException {
    TableRequestOptions options = new TableRequestOptions();

    options.setTablePayloadFormat(TablePayloadFormat.JsonFullMetadata);
    doEscapeTestHelper(data, useBatch, includeInKey, options);

    options.setTablePayloadFormat(TablePayloadFormat.Json);
    doEscapeTestHelper(data, useBatch, includeInKey, options);

    options.setTablePayloadFormat(TablePayloadFormat.JsonNoMetadata);
    doEscapeTestHelper(data, useBatch, includeInKey, options);

    options.setTablePayloadFormat(TablePayloadFormat.JsonNoMetadata);
    options.setPropertyResolver(new Class1());
    doEscapeTestHelper(data, useBatch, includeInKey, options);
  }