### Question:
LotteryNumbers { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } var other = (LotteryNumbers) obj; if (numbers == null) { return other.numbers == null; } else { return numbers.equals(other.numbers); } } private  LotteryNumbers(); private  LotteryNumbers(Set<Integer> givenNumbers); static LotteryNumbers createRandom(); static LotteryNumbers create(Set<Integer> givenNumbers); Set<Integer> getNumbers(); String getNumbersAsString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final int MIN_NUMBER; static final int MAX_NUMBER; static final int NUM_NUMBERS; }### Answer:
@Test void testEquals() { var numbers1 = LotteryNumbers.create(Set.of(1, 2, 3, 4)); var numbers2 = LotteryNumbers.create(Set.of(1, 2, 3, 4)); assertEquals(numbers1, numbers2); var numbers3 = LotteryNumbers.create(Set.of(11, 12, 13, 14)); assertNotEquals(numbers1, numbers3); }