public static byte[] encodeObjectIdentifier(String oid) {
        try (final ByteArrayOutputStream bos = new ByteArrayOutputStream(oid.length() / 3 + 1)) {
            encodeObjectIdentifier(oid, bos);
            return bos.toByteArray();
        } catch (IOException e) {
            throw new Asn1Exception("Unexpected IO exception", e);
        }
    }
@Test
    public void encodeObjectIdentifierWithTripleFirst() {
        assertArrayEquals(new byte[] { (byte) 0xff, (byte) 0xff, 6 }, Asn1Utils.encodeObjectIdentifier("2.2096950"));
    }