public static String encodeOnionUrlV2(byte[] onionAddrBytes) {
        checkArgument(onionAddrBytes.length == 10);
        return BASE32.encode(onionAddrBytes) + ".onion";
    }
@Test(expected = IllegalArgumentException.class)
    public void encodeOnionUrlV3_badLength() {
        TorUtils.encodeOnionUrlV2(new byte[33]);
    }