{
byte[] raw = new byte[] { 1, 'a', 5, 'b', 'a', 's', 'i', 'c', 4, 'n', 'a', 'm', 'e', 0 };
Name n = new Name("A.Basic.Name.");
DNSOutput o = new DNSOutput();
n.toWireCanonical(o);
assertTrue(Arrays.equals(raw, o.toByteArray()));
}
public void test_0arg() throws TextParseException