@Override
    public void serialize(Asn1OutputStream out, Class<? extends ASN1Object> type, ASN1Object obj,
                          Asn1ObjectMapper mapper) throws IOException {
        out.write(obj.getEncoded());
    }
@Test
    public void shouldSerialize() {
        assertArrayEquals(
            new byte[] { 0x13, 03, 'E', 'U', 'R' },
            serialize(new Iso4217CurrencyCodeConverter(), Iso4217CurrencyCode.class, new Iso4217CurrencyCode("EUR"))
        );
    }