@Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null) {
        return false;
      }
      if (getClass() != obj.getClass()) {
        return false;
      }
      ByteWrapper other = (ByteWrapper) obj;
      return Arrays.equals(bytes, other.bytes);
    }
A wrapper around a byte array that implements equals, for comparison checks.
geode-lucene/src/integrationTest/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImplJUnitTest.java