@Test
  public void testBasicFunctionality() throws Exception {
    byte[] payload = TestUtils.getRandomBytes(10000);
    byte[] encryptedPayload = cryptoAgent.encrypt(ByteBuffer.wrap(payload)).array();
    assertFalse(payload.length == encryptedPayload.length);
    assertNotSubset("Payload is a subset of the 'encrypted' payload", encryptedPayload, payload);
    byte[] decryptedPayload = cryptoAgent.decrypt(ByteBuffer.wrap(encryptedPayload)).array();
    assertNotSame("Payload and decrypted payload are the same array instance", payload, decryptedPayload);
    assertArrayEquals("Decrypted payload different from original payload", payload, decryptedPayload);
  }
Tests basic encrypt -> decrypt functionality
@throws Exception
ambry-cloud/src/test/java/com/github/ambry/cloud/CloudBlobCryptoAgentImplTest.java