@Test
public void transitive() {

    EquivalenceFinder<Integer> finder = create();
    finder.markEquivalent(1, 2);
    finder.markEquivalent(2, 3);
    check(finder, true, 1, 2);
    check(finder, true, 1, 3);
    check(finder, true, 2, 3);
}