private void assertNotSubset(String message, byte[] arr0, byte[] arr1) throws Exception {
    boolean found;
    if (arr0 == null || arr1 == null) {
      throw new Exception("Array arguments should not be null");
    }
    if (arr0.length == 0 || arr1.length == 0) {
      throw new Exception("Array arguments should not have 0 length");
    }
    byte[] largerArray = arr0.length > arr1.length ? arr0 : arr1;
    byte[] smallerArray = largerArray == arr0 ? arr1 : arr0;

    for (int i = 0; i <= largerArray.length - smallerArray.length; i++) {
      //could add rolling hash function to make comparison more efficient
      //but overkill in this testing application
      found = true;
      int ix = i;
      for (int j = 0; j < smallerArray.length; j++) {
        if (largerArray[ix] != smallerArray[j]) {
          found = false;
          break;
        }
        ix++;
      }
      if (found) {
        throw new Exception(message);
      }
    }
  }
Throws an exception if the smaller array is a subset of the larger array
@param message message sent with exception
@param arr0
@param arr1
@throws Exception
ambry-cloud/src/test/java/com/github/ambry/cloud/CloudBlobCryptoAgentImplTest.java