@Test
public void testEntityModelEqualsByContent() {

    EntityModel entityModelOne = new EntityModel();
    EntityModel entityModelTwo = new EntityModel();
    assertTrue(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelOne.setValue(new StringFieldModel("id", "ID_HERE"));
    assertFalse(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelTwo.setValue(new StringFieldModel("id", "ID_HERE"));
    assertTrue(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelOne.setValue(new LongFieldModel("newField", 1337L));
    assertFalse(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelTwo.setValue(new LongFieldModel("newField", 1337L));
    assertTrue(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelTwo.setValue(new LongFieldModel("newField", 1336L));
    assertFalse(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelTwo.setValue(new LongFieldModel("newField", 1337L));
    assertTrue(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
    entityModelTwo.setValue(new DateFieldModel("newField", ZonedDateTime.now()));
    assertFalse(EntityUtil.areEqualByContent(entityModelOne, entityModelTwo));
}