@@ -0,0 +1,954 @@
+package org.apache.tinkerpop.gremlin.util.function;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collections;%0Aimport java.util.Comparator;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author Stephen Mallette (http://stephen.genoprime.com)%0A */%0Apublic class ChainedComparatorTest %7B%0A%0A    final ChainedComparator%3CInteger%3E chained = new ChainedComparator%3C%3E(Arrays.asList(Comparator.%3CInteger%3EnaturalOrder(), Comparator.%3CInteger%3EreverseOrder()));%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void shouldThrowIfNoComparators() %7B%0A        new ChainedComparator%3C%3E(Collections.emptyList());%0A    %7D%0A%0A    @Test%0A    public void shouldCompareBigger() %7B%0A        assertEquals(1, chained.compare(2, 1));%0A    %7D%0A%0A    @Test%0A    public void shouldCompareSmaller() %7B%0A        assertEquals(-1, chained.compare(1, 2));%0A    %7D%0A%0A    @Test%0A    public void shouldCompareSame() %7B%0A        assertEquals(0, chained.compare(2, 2));%0A    %7D%0A%7D%0A

Add test for ChainedComparator