}
RevTree changed = builder.build();
assertEquals(RevTree.NORMALIZED_SIZE_LIMIT, changed.size());
// sanity check
assertTrue(changed.features().isPresent());
assertFalse(changed.buckets().isPresent());
final long expected = deepTree.size() - changed.size();
assertEquals(expected, count(deepTree, changed).featureCount());
assertEquals(expected, count(changed, deepTree).featureCount());