ThingId extends NamespacedEntityIdWithType { public static ThingId generateRandom() { return wrapInThingIdInvalidException(() -> new ThingId(DefaultNamespacedEntityId.fromName(UUID.randomUUID().toString()))); } private  ThingId(final NamespacedEntityId entityId); static ThingId of(final CharSequence thingId); static ThingId of(final String namespace, final String name); static ThingId inDefaultNamespace(final String name); static ThingId generateRandom(); static ThingId dummy(); @Override EntityType getEntityType();  }
@Test public void generateRandomHasEmptyNamespace() { final ThingId randomThingId = ThingId.generateRandom(); assertThat(randomThingId.getNamespace()).isEmpty(); }