@Test
public void createThingWithInvalidDefinition() {

    final String invalidDefinitionValue = "!namespace:";
    assertThatExceptionOfType(DefinitionIdentifierInvalidException.class).isThrownBy(() -> {
        ThingDefinition invalidDefinition = ImmutableThingDefinition.ofParsed(invalidDefinitionValue);
        ImmutableThing.of(
                THING_ID,
                POLICY_ID,
                invalidDefinition,
                ATTRIBUTES,
                FEATURES,
                LIFECYCLE,
                REVISION,
                MODIFIED,
                CREATED,
                METADATA);
    });
}