@Test
public void testLastComponent() {
CategoryPath p = new CategoryPath(1000,1000);
// When the category is empty, we expect a null
assertNull(p.lastComponent());
for (int i=0; i<=100; i++) {
String num = Integer.toString(i);
p.add(num);
assertEquals(num, p.lastComponent());
}