int hit = 0; // hit for prob = 50%
for (int i = 0; i < trials; i++) {
// Test with 100% prob of hit
long id2 = chooser.chooseForOp(rng, id1,
LinkStore.DEFAULT_LINK_TYPE, 1.0);
assertTrue(existing.contains(id2) || existing.size() == 0);
// Test with 50% prob of hit
id2 = chooser.chooseForOp(rng, id1, LinkStore.DEFAULT_LINK_TYPE, 0.5);