src/main/java/org/fest/assertions/ArrayInspection.java
public static @NotNull Set<Object> copyToSet(@NotNull Object array) {
    return copy(checkNotNull(array), newLinkedHashSet());
  }
public static @NotNull Set<Object> copyToSet(@NotNull Object array) {
    return copy(checkNotNull(array), newLinkedHashSet());
  }
Copies the contents of the given array into a list.

@param array the array to copy.
@return a list containing the contents of the array.
@throws IllegalArgumentException if the given object is not an array.
@since 1.3.