@Test
  public void testEncryptWithStream() throws Exception {
    Assume.assumeFalse(TinkFips.useOnlyFips());

    testEncryptSingleBytes(16, 1024);
    testEncryptSingleBytes(16, 12345);
    testEncryptSingleBytes(16, 111111);
  }
One case that is sometimes problematic is writing single bytes to a stream. This test
constructs an OutputStream from a WritableByteChannel and tests whether encryption works on
this stream.
java_src/src/test/java/com/google/crypto/tink/subtle/AesCtrHmacStreamingTest.java