@Test
public void throwsWhenTraitNotFound() {

    Shape string = StringShape.builder().id("com.foo#example").build();
    Assertions.assertThrows(ExpectationNotMetException.class, () -> string.expectTrait(DeprecatedTrait.class));
}