public static void testEncryptDecrypt(
      StreamingAead ags, int firstSegmentOffset, int plaintextSize, int chunkSize)
      throws Exception {
    testEncryptDecryptWithChannel(ags, ags, firstSegmentOffset, plaintextSize, chunkSize);
    testEncryptDecryptWithStream(ags, ags, firstSegmentOffset, plaintextSize, chunkSize);
  }
Encrypts and decrypts some plaintext in a stream and checks that the expected plaintext is
returned.

@param encryptionStreamingAead the StreamingAead test object that encrypts.
@param decryptionStreamingAead the StreamingAead test object that decrypts (can be the same
    object as {@code encryptionStreamingAead}).
@param firstSegmentOffset number of bytes prepended to the ciphertext stream.
@param plaintextSize the size of the plaintext
@param chunkSize decryption read chunks of this size.
java_src/src/main/java/com/google/crypto/tink/testing/StreamingTestUtil.java