@Test
  public void testDecryptionAesCtrHmac() throws Exception {
    byte[] ikm = Hex.decode("000102030405060708090a0b0c0d0e0f");
    byte[] associatedData = Hex.decode("aabbccddeeff");
    int keySize = 16;
    int tagSize = 12;
    int segmentSize = 512;
    AesCtrHmacStreaming stream = new AesCtrHmacStreaming(
        ikm, "HmacSha256", keySize, "HmacSha256", tagSize, segmentSize, 0);
    testDecryption(stream, associatedData, 64);
  }
Test for thread safety. This test is an incorrect use case for StreamingAead implementations.
Streams have state and hence their behaviour is not well defined. Nevertheless if an encrypting
channel is used concurrently we expect the following behaviour: (1) All bytes are read (2) The
thread sanitizer does not find anything.
java_src/src/test/java/com/google/crypto/tink/subtle/StreamingAeadThreadSafetyTest.java