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