### Question:
OSMNode extends OSMEntity implements Comparable<OSMNode>, Serializable { public boolean equalsTo(OSMNode o) { return super.equalsTo(o) && longitude == o.longitude && latitude == o.latitude; } OSMNode(final long id, final int version, final OSHDBTimestamp timestamp, final long changeset,
      final int userId, final int[] tags, final long longitude, final long latitude); @Override OSMType getType(); double getLongitude(); double getLatitude(); long getLon(); long getLat(); @Override String toString(); boolean equalsTo(OSMNode o); @Override int compareTo(OSMNode o);  }### Answer:
@Test public void testEqualsTo() { OSMNode o = new OSMNode(1L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {1, 1, 2, 2, 3, 3}, 1000000000L, 1000000000L); OSMNode instance = new OSMNode(1L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {1, 1, 2, 2, 3, 3}, 1000000000L, 1000000000L); boolean expResult = true; boolean result = instance.equalsTo(o); assertEquals(expResult, result); }
@Test public void testEqualsToII() { OSMNode o = new OSMNode(2L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {1, 1, 2, 2, 3, 3}, 1000000000L, 1000000000L); OSMNode instance = new OSMNode(1L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {1, 1, 2, 2, 3, 3}, 1000000000L, 1000000000L); boolean expResult = false; boolean result = instance.equalsTo(o); assertEquals(expResult, result); }
@Test public void testEqualsToOSMNode() { long id = 123; int version = 1; long timestamp = 310172400000l; long changeset = 4444; int userId = 23; int[] tags = new int[] {1, 1, 2, 2, 3, 3}; long longitude = 86809727l; long latitude = 494094984l; OSMNode a = new OSMNode(id, version, new OSHDBTimestamp(timestamp), changeset, userId, tags, longitude, latitude); OSMNode b = new OSMNode(id, version, new OSHDBTimestamp(timestamp), changeset, userId, tags, longitude, latitude); assertTrue(a.equalsTo(b)); }