@Override
    public ObjectNode encode(MappingAddress address, CodecContext context) {
        EncodeMappingAddressCodecHelper encoder =
                            new EncodeMappingAddressCodecHelper(address, context);
        return encoder.encode();
    }
@Test
    public void asMappingAddressTest() {
        MappingAddress address = MappingAddresses.asMappingAddress(AS);
        ObjectNode result = addressCodec.encode(address, context);
        assertThat(result, matchesMappingAddress(address));
    }