### Question:
AsnInterledgerAddressCodec extends AsnIA5StringBasedObjectCodec<InterledgerAddress> { @Override public void encode(InterledgerAddress value) { setCharString(value == null ? "" : value.getValue()); } AsnInterledgerAddressCodec(); @Override InterledgerAddress decode(); @Override void encode(InterledgerAddress value);  }### Answer:
@Test public void encode() { codec.encode(InterledgerAddress.of(G_FOO)); assertThat(codec.getCharString()).isEqualTo(G_FOO); }