{
StringBuffer sb = new StringBuffer();
for(int i=0; i<127; ++i){
sb.append("a.");
}
Name n = new Name(sb.toString());
assertTrue(n.isAbsolute());
assertFalse(n.isWild());
assertEquals(128, n.labels());
assertEquals(255, n.length());
for(int i=0; i<127; ++i){
assertTrue(Arrays.equals(new byte[] { 1, 'a' }, n.getLabel(i)));
assertEquals("a", n.getLabelString(i));
}
assertTrue(Arrays.equals(new byte[] { 0 }, n.getLabel(127)));
assertEquals("", n.getLabelString(127));
}