DayOfWeek { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DayOfWeek dayOfWeek = (DayOfWeek) o; return Objects.equals(slot, dayOfWeek.slot) && value == dayOfWeek.value; } DayOfWeek(Slot slot, java.time.DayOfWeek value); Slot getSlot(); java.time.DayOfWeek getValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { DayOfWeek left = new DayOfWeek(mockSlot, java.time.DayOfWeek.MONDAY); DayOfWeek right = new DayOfWeek(mockSlot, java.time.DayOfWeek.MONDAY); assertEquals(left, right); assertEquals(left.getValue(), right.getValue()); assertEquals(left.getSlot(), right.getSlot()); assertEquals(left.hashCode(), right.hashCode()); assertEquals(left.toString(), right.toString()); }