if (!allowExtraOwners) {
assertEquals(owners.size(), actualNumOwners);
} else {
assertTrue(owners.size() >= actualNumOwners);
}
stats.incPrimaryOwned(owners.get(0));
for (int j = 0; j < owners.size(); j++) {
Address owner = owners.get(j);
stats.incOwned(owner);
assertEquals(owners.indexOf(owner), j, "Found the same owner twice in the owners list");
}