Keywords { @Private static String[] unique(Comparator<String> c, String... names) { TreeSet<String> set = new TreeSet<String>(c); set.addAll(Arrays.asList(names)); return set.toArray(new String[set.size()]); }    }
@Test public void testUnique() { Asserts.assertArrayEquals( Keywords.unique(String.CASE_INSENSITIVE_ORDER, "foo", "Foo", "foo", "bar"), "bar", "foo"); }