@Test
public void test() {

  // TODO: this logic should be moved into the library
  Map<TermId, Integer> recipeToId = new HashMap<>();
  Map<TermId, Set<TermId>> labels = new HashMap<>();
  int nextId = 1;
  for (VegetableRecipeAnnotation a : recipeAnnotations) {
    if (!recipeToId.containsKey(a.getLabel())) {
      recipeToId.put(a.getLabel(), nextId++);
    }
    TermId recipeId = a.getTermId();
    if (!labels.containsKey(recipeId)) {
      labels.put(recipeId, new HashSet<>());
    }
    final Set<TermId> termIds = labels.get(recipeId);
    termIds.add(a.getTermId());
  }
  Map<Integer, ScoreDistribution> samplingResult = scoreSampling.performSampling();
  assertEquals(1, samplingResult.size());
  // todo add more testing of distribution
}