}
@Test
public void degenerate_with_namespace()
{
IdAllocator a = new IdAllocator("_NS");
assertEquals(a.allocateId("d_1"), "d_1_NS");
assertEquals(a.allocateId("d"), "d_NS");
assertEquals(a.allocateId("d"), "d_NS_0");
assertEquals(a.allocateId("d"), "d_NS_1");
assertEquals(a.allocateId("d"), "d_NS_2");
assertEquals(a.allocateId("d"), "d_NS_3");
assertEquals(a.allocateId("d_1"), "d_1_NS_0");
// This is very degenerate, and maybe something that needs fixing.
assertEquals(a.allocateId("d_1_NS"), "d_1_NS_NS");
}