@Override
    public String deserialize(Asn1ObjectInputStream in) {
        final String oid = Asn1Utils.decodeObjectIdentifier(in.buffer(), in.position(), in.length);
        in.advanceToEnd();
        return oid;
    }
@Test
    public void shouldDeserialize() {
        assertEquals("1.2.3", deserialize(
            new ObjectIdentifierConverter(), String.class, new byte[] { 0x2a, 0x03 }
        ));
    }