AbstractIdentifiablePayload extends IdentifiablePayload<T> implements Serializable { @Override public final T getIdentifier() { return identifier; } AbstractIdentifiablePayload(final @NonNull T identifier, final byte @NonNull[] serialized); @Override final T getIdentifier(); @Override final int size();  }
@Test public void testSerialization() { final T object = object(); final T cloned = SerializationUtils.clone(object); Assert.assertEquals(object.getIdentifier(), cloned.getIdentifier()); }