### Question:
Window extends BaseCustomIdType implements Comparable<Window> { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; var buffer = (Window) o; return getId() == buffer.getId(); } Window(long id); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(Window o);  }### Answer:
@Test public void equalsTest() { var windowOne = new Window(1); var windowTwo = new Window(2); assertNotEquals(windowOne, windowTwo); assertEquals(windowOne.equals(windowTwo), windowTwo.equals(windowOne)); var windowOneAgain = new Window(1); var windowOneSame = windowOne; assertEquals(windowOne, windowOneSame); assertEquals(windowOne, windowOneAgain); assertEquals(windowOne.equals(windowOneAgain), windowOneAgain.equals(windowOneSame)); }