@Test
public void testEquals() {

  assertThat(new ValueWithDisplayString("display", "value")).isEqualTo(new ValueWithDisplayString("display", "value"));
  assertThat(new ValueWithDisplayString("display", "value")).isNotEqualTo(new ValueWithDisplayString("display", "value", "hint"));
  assertThat(new ValueWithDisplayString("display", "value")).isNotEqualTo(new ValueWithDisplayString("different", "value"));
  assertThat(new ValueWithDisplayString("display", "value")).isNotEqualTo(new ValueWithDisplayString("display", "other"));
  assertThat(new ValueWithDisplayString("display", "value")).isNotEqualTo(new Object());
  assertThat(new ValueWithDisplayString("display", "value")).isNotEqualTo(null);
}