Mult { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Mult mult = (Mult) o; if (multiple != null ? !multiple.equals(mult.multiple) : mult.multiple != null) return false; return true; }  int getCount(); String order(String startSubscript, int direction); String get(String subscript); void put(String subscript, String value); void add(Map map); void add(List list); void add(JsonNode jsonNode); int position(String subscript); String subscript(int position); String getFirst(); String getLast(); Map<String, Object> toMap(); @JsonValue JsonNode toJsonNode(); @Override boolean equals(Object o); @Override int hashCode(); static Mult create(Map map); static Mult create(List list); static Mult create(JsonNode json);  }
@Test public void testEquals() { Mult m1 = new Mult(); m1.put("foo", "bar"); m1.put("baz", "spaz"); Mult m2 = new Mult(); m2.put("foo", "bar"); m2.put("baz", "spaz"); Mult m3 = new Mult(); m3.put("foo", "bar"); Mult m4 = new Mult(); m4.put("foo", "bar"); m4.put("baz", "waz"); assertTrue(m1.equals(m1)); assertTrue(m2.equals(m1)); assertTrue(m1.equals(m2)); assertFalse(m3.equals(m1)); assertFalse(m1.equals(m3)); assertFalse(m4.equals(m1)); assertFalse(m1.equals(m4)); }