EventId implements ValueObjectWithBaseType<UUID>,
        Comparable<EventId>, Serializable { @Override public final UUID asBaseType() { if (uuid == null) { uuid = new UUID(mostSigBits, leastSigBits); } return uuid; } EventId();  EventId(@NotNull @UUIDStr final String value);  EventId(@NotNull final UUID value); @Override final Class<UUID> getBaseType(); @Override final UUID asBaseType(); @Override final String toString(); @Override final int hashCode(); @Override final boolean equals(final Object obj); @Override final int compareTo(final EventId other);  }
@Test public final void testConstructValid() { final UUID uuid = UUID.randomUUID(); assertThat(new EventId(uuid).asBaseType()).isEqualTo(uuid); }