public boolean equals(Object other) {
    if (other instanceof Value2) {
      Value2 v2 = (Value2) other;
      return v2.stateName.equals(stateName);
    } else {
      return false;
    }
  }
Sample class for Data DUnit tests with JSON keys and values
geode-junit/src/main/java/org/apache/geode/management/internal/cli/dto/Value2.java