}
public void test_ctor_max_label_escaped() throws TextParseException
{
// name with a 63 char label containing an escape
Name n = new Name("aaaa\\100aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.b.");
assertTrue(n.isAbsolute());
assertFalse(n.isWild());
assertEquals(3, n.labels());
assertEquals(67, n.length());
assertTrue(Arrays.equals(new byte[] { 63, 'a','a','a','a',(byte)100,'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a' },
n.getLabel(0)));
assertTrue(Arrays.equals(new byte[] { 1, 'b' },
n.getLabel(1)));
assertEquals("b", n.getLabelString(1));
assertTrue(Arrays.equals(new byte[] { 0 },
n.getLabel(2)));
assertEquals("", n.getLabelString(2));
}