@Test
public void comparesAndHashCodeWhenShapeIsNull() {

    TraitDefinition a = TraitDefinition.builder().selector(Selector.parse("string")).build();
    TraitDefinition b = TraitDefinition.builder().selector(Selector.parse("string")).build();
    assertEquals(a, b);
    assertEquals(a.hashCode(), b.hashCode());
}