assertEquals(2, p1.capacityChars());
p1 = new CategoryPath(p,0);
assertEquals(0, p1.length());
assertEquals("", p1.toString('/'));
assertEquals(0, p1.capacityComponents());
assertEquals(0, p1.capacityChars());
// with all the following lengths, the prefix should be the whole path:
int[] lengths = { 3, -1, 4 };
for (int i=0; i<lengths.length; i++) {