@Test
public void testDefaultOrdinalPolicy() {
// check ordinal policy
OrdinalPolicy ordinalPolicy = new DefaultOrdinalPolicy();
assertFalse("default ordinal policy should not match root", ordinalPolicy
.shouldAdd(TaxonomyReader.ROOT_ORDINAL));
for (int i = 0; i < 300; i++) {
int ordinal = 1 + random.nextInt(Integer.MAX_VALUE - 1);
assertTrue("default ordinal policy should match " + ordinal,
ordinalPolicy.shouldAdd(ordinal));