code: @SuppressWarnings("unchecked") // OK, because we serialized a type `T`
      public static <T extends Serializable> T roundtrip(final T msg) {
          return (T) SerializationUtils.deserialize(SerializationUtils.serialize(msg));
      }
docs: Performs a serialization roundtrip. Serializes and deserializes the given object, great for testing objects that
  implement {@link Serializable}.
  
  @param <T>
  the type of the object involved
  @param msg
  the object to roundtrip
  @return the serialized and deserialized object
  @since 3.3