@Override
    public void serialize(Asn1OutputStream out, ECPoint point) {
        out.write(point.getEncoded(true));
    }
@Test
    public void shouldSerialize() {
        assertArrayEquals(
            Hex.decode("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"),
            serialize(new CardPointConverter(), ECPoint.class, G)
        );
    }