public void testDefaultPathPolicy() {
// check path policy
CategoryPath cp = new CategoryPath();
PathPolicy pathPolicy = new DefaultPathPolicy();
assertFalse("default path policy should not accept root",
pathPolicy.shouldAdd(cp));
for (int i = 0; i < 300; i++) {
int nComponents = 1 + random.nextInt(10);
String[] components = new String[nComponents];
for (int j = 0; j < components.length; j++) {
components[j] = (Integer.valueOf(random.nextInt(30))).toString();