Uid implements Serializable { @Override public boolean equals(@Nullable final Object obj) { final boolean eq; if (this == obj) { eq = true; } else if ((obj instanceof Uid)) { final Uid<?> that = (Uid) obj; eq = that.uuid.equals(uuid); } else { eq = false; } return eq; } Uid();  Uid(@Nonnull final String uuid); private  Uid(@Nonnull final UUID uuid); static boolean isValid(@Nullable final String id); @Nonnull static Uid<T> fromString(@Nonnull final String id); @Nonnull static Uid<T> fromHexString(@Nonnull final String id); @Nonnull String toHexString(); @SuppressWarnings({"unchecked", "UnusedParameters"}) @Nonnull Uid<T> as(@Nonnull final Class<T> ignored); boolean matchesFromString(@Nonnull final String uid); @Override boolean equals(@Nullable final Object obj); @Override int hashCode(); @Override @Nonnull String toString();  }
@Test public void testEquals() { LOG.info("testEquals"); EqualsVerifier.forClass(Uid.class). withPrefabValues(UUID.class, new UUID(1L, 2L), new UUID(3L, 4L)). verify(); }