@Test
public void createThingWithInvalidPolicyId() {

    final String invalidPolicyId = "namespace:";
    assertThatExceptionOfType(PolicyIdInvalidException.class).isThrownBy(() -> {
        ImmutableThing.of(
                THING_ID,
                PolicyId.of(invalidPolicyId),
                DEFINITION,
                ATTRIBUTES,
                FEATURES,
                LIFECYCLE,
                REVISION,
                MODIFIED,
                CREATED,
                METADATA);
    });
}