@Test
public void testFind() throws Exception {

    IAtomContainer dummy = mock(IAtomContainer.class);
    int[][] g = new int[][]{{1, 5, 6}, {0, 2}, {1, 3}, {2, 4, 7}, {3, 5}, {0, 4}, {0}, {3}};
    // mock the invariants
    long[] values = new long[]{1, 4, 3, 1, 3, 5, 7, 8};
    EquivalentSetFinder finder = new AllEquivalentCyclicSet();
    Set<Integer> set = finder.find(values, dummy, g);
    assertThat(set.size(), is(4));
    // the first size vertex are all in a cycle
    assertTrue(set.contains(0));
    assertTrue(set.contains(2));
    assertTrue(set.contains(3));
    assertTrue(set.contains(4));
}