CategoryParentsStream stream = new CategoryParentsStream(new CategoryAttributesStream(
categoryContainer), taxonomyWriter,
new DefaultFacetIndexingParams());
int nAttributes = 0;
while (stream.incrementToken()) {
if (stream.categoryAttribute.getProperty(DummyProperty.class) != null) {
nAttributes++;
}
}
assertEquals("Wrong number of tokens with attributes", 1, nAttributes);