### Question:
CollectionsUtil { public static <T> Set<T> toSet(T... objects) { Set<T> theSet = new HashSet<T>(); addToCollection(theSet, objects); return theSet; } private  CollectionsUtil(); static Set<T> toSet(T... objects); static List<T> toList(T... objects); static List<T> toList(Enumeration<T> objects);  }### Answer:
@Test public void test_Set_01() { Set<String> strings = CollectionsUtil.toSet("1", "2", "3"); assertTrue(strings.contains("1")); assertTrue(strings.contains("2")); assertTrue(strings.contains("3")); }
@Test public void test_Set_02() { Set<Integer> integers = CollectionsUtil.toSet(1, 2, 3); assertTrue(integers.contains(1)); assertTrue(integers.contains(2)); assertTrue(integers.contains(3)); }