EntityNotificationImpl implements EntityNotification { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EntityNotificationImpl that = (EntityNotificationImpl) o; return Objects.equals(entity, that.entity) && operationType == that.operationType && Objects.equals(traits, that.traits); } @SuppressWarnings("unused") private  EntityNotificationImpl();  EntityNotificationImpl(Referenceable entity, OperationType operationType, List<IStruct> traits);  EntityNotificationImpl(Referenceable entity, OperationType operationType, TypeSystem typeSystem); @Override IReferenceableInstance getEntity(); @Override List<IStruct> getAllTraits(); @Override OperationType getOperationType(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testEquals() throws Exception { Referenceable entity = getEntity("id"); EntityNotificationImpl entityNotification2 = new EntityNotificationImpl(entity, EntityNotification.OperationType.ENTITY_CREATE, Collections.<IStruct>emptyList()); EntityNotificationImpl entityNotification = new EntityNotificationImpl(entity, EntityNotification.OperationType.ENTITY_CREATE, Collections.<IStruct>emptyList()); assertTrue(entityNotification.equals(entityNotification2)); assertTrue(entityNotification2.equals(entityNotification)); }