/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package org.opensearch.dataprepper.expression.util; import java.util.Objects; public class TestObject { String field; public TestObject(String field) { this.field = field; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TestObject that = (TestObject) o; return Objects.equals(field, that.field); } @Override public int hashCode() { return Objects.hash(field); } }