{
  "kind": "native-in-memory-api-fixture",
  "scope": "No disk I/O, throughput measurement, persistence test or SEDA replication.",
  "cases": [
    {
      "mode": "respect",
      "highWaterMarkBytes": 4,
      "intendedChunks": [
        "aaaa",
        "bbbb",
        "cccc"
      ],
      "writes": [
        {
          "chunk": "aaaa",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "bbbb",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "cccc",
          "mayContinue": false,
          "bufferedBytes": 4
        }
      ],
      "handledChunks": [
        "aaaa",
        "bbbb",
        "cccc"
      ],
      "peakBufferedBytes": 4,
      "drains": 3,
      "handledBytes": 12
    },
    {
      "mode": "ignore",
      "highWaterMarkBytes": 4,
      "intendedChunks": [
        "aaaa",
        "bbbb",
        "cccc"
      ],
      "writes": [
        {
          "chunk": "aaaa",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "bbbb",
          "mayContinue": false,
          "bufferedBytes": 8
        },
        {
          "chunk": "cccc",
          "mayContinue": false,
          "bufferedBytes": 12
        }
      ],
      "handledChunks": [
        "aaaa",
        "bbbb",
        "cccc"
      ],
      "peakBufferedBytes": 12,
      "drains": 0,
      "handledBytes": 12
    },
    {
      "mode": "retry",
      "highWaterMarkBytes": 4,
      "intendedChunks": [
        "aaaa",
        "bbbb",
        "cccc"
      ],
      "writes": [
        {
          "chunk": "aaaa",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "aaaa",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "bbbb",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "bbbb",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "cccc",
          "mayContinue": false,
          "bufferedBytes": 4
        },
        {
          "chunk": "cccc",
          "mayContinue": false,
          "bufferedBytes": 4
        }
      ],
      "handledChunks": [
        "aaaa",
        "aaaa",
        "bbbb",
        "bbbb",
        "cccc",
        "cccc"
      ],
      "peakBufferedBytes": 4,
      "drains": 6,
      "handledBytes": 24
    },
    {
      "mode": "respect",
      "highWaterMarkBytes": 4,
      "intendedChunks": [
        "abcdef"
      ],
      "writes": [
        {
          "chunk": "abcdef",
          "mayContinue": false,
          "bufferedBytes": 6
        }
      ],
      "handledChunks": [
        "abcdef"
      ],
      "peakBufferedBytes": 6,
      "drains": 1,
      "handledBytes": 6
    }
  ],
  "error": {
    "message": "injected-sink-failure",
    "destroyed": true
  }
}
