@Test
public void testFPLonger() {

    List<Set<Integer>> txns = new ArrayList<>();
    txns.add(intIfy("f, a, c, d, g, i, m, p"));
    txns.add(intIfy("a, b, c, f, l, m, o"));
    FPGrowth fp = new FPGrowth();
    List<ItemsetWithCount> itemsets = fp.getItemsetsWithSupportRatio(txns, .2);
    Apriori ap = new Apriori();
    Set<ItemsetWithCount> api = ap.getItemsets(txns, .2);
      printItemsets(itemsets);
    List<Set<Integer>> apil = api.stream().map(i -> i.getItems()).collect(Collectors.toList());
    Set<Set<Integer>> dupdetector = new HashSet<>();
    int numDup = 0;
    for (Set<Integer> s : apil) {
        if (!dupdetector.add(s)) {
            numDup++;
        }
    }
    assertEquals(0, numDup);
    Set<Set<Integer>> iss = itemsets.stream().map(i -> i.getItems()).collect(Collectors.toSet());
      log.debug("DIFF: {}", Sets.difference(dupdetector, iss));
    assertEquals(api.size(), itemsets.size());
}