@Override
    public Encoder getMapValueEncoder() {
        return encoder;
    }
@Test
    public void shouldSerializeTheMapCorrectly() throws Exception {
        assertThat(mapCodec.getMapValueEncoder().encode(map).toString(CharsetUtil.UTF_8))
                .isEqualTo("{\"foo\":[\"bar\"]}");
    }