IdAllocator a = new IdAllocator("_NS");
assertEquals("name_NS", a.allocateId("name"));
for (int i = 0; i < 10; i++)
assertEquals("name_NS_" + i, a.allocateId("name"));
// This is current behavior, but is probably something
// that could be improved.
assertEquals("foo_NS_NS", a.allocateId("foo_NS"));