### Question:
Entity { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final Entity entity = (Entity) o; return Objects.equals(id, entity.id); } Entity();  Entity(String id);  Entity(Entity entity); String getId(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void test_equals_null_returnsFalse() { Entity entity = new Entity(); Assertions.assertFalse(entity.equals(null)); }
@Test void test_equals_otherClass_returnsFalse() { Entity entity = new Entity(); Assertions.assertFalse(entity.equals(Integer.valueOf(0))); }
@Test void test_equals_isReflexive() { Entity entity = new Entity(); Assertions.assertTrue(entity.equals(entity)); }
@Test void test_equals_isSymmetric() { Entity entity1 = new Entity(); Entity entity2 = new Entity(entity1); Assertions.assertTrue(entity1.equals(entity2)); Assertions.assertTrue(entity2.equals(entity1)); }
@Test void test_equals_isTransitive() { Entity entity1 = new Entity(); Entity entity2 = new Entity(entity1); Entity entity3 = new Entity(entity2); Assertions.assertTrue(entity1.equals(entity2)); Assertions.assertTrue(entity2.equals(entity3)); Assertions.assertTrue(entity1.equals(entity3)); }