@Override
    public BigInteger deserialize(Asn1ObjectInputStream in) {
        return BCD.decode(in.readAll());
    }
@Test
    public void shouldDeserialize() {
        assertEquals(BigInteger.valueOf(1337), deserialize(
            new BcdConverter(), BigInteger.class, new byte[] { 0x13, 0x37 }
        ));
    }