@Override
    public BigInteger deserialize(Asn1ObjectInputStream in) {
        return new BigInteger(1, in.readAll());
    }
@Test
    public void shouldDeserialize() {
        assertEquals(BigInteger.valueOf(128), deserialize(
            new BigIntegerConverter(), BigInteger.class, new byte[] { -128 }
        ));
    }