@Test
public void shouldNotBeEqualIfValueFieldDiffers() {

    EntityTag entityTag = new EntityTag("value", true);
    EntityTag entityTagWithDifferentValue = new EntityTag("differentValue", true);
    assertThat(entityTag, not(equalTo(entityTagWithDifferentValue)));
    assertThat(entityTag.hashCode(), not(equalTo(entityTagWithDifferentValue.hashCode())));
}