@Test
public void testEncodeAndDecodeRegisterSerializerDirectlyToModule() {

    JsonObjectMapper mapper = new JsonObjectMapper();
    // first add serializer then register module
    SimpleModule module = new SimpleModule("cemo", Version.unknownVersion());
    module.addSerializer(Point.class, new PointSerializer());
    mapper.registerModule(module);
    transcoder = new JsonTranscoder(mapper);
    Point p = new Point(40, 50);
    CachedObject co = transcoder.encode(p);
    assertNotNull(co);
    assertNotNull(co.getData());
    assertEquals("{\"v\":\"40x50\"}", new String(co.getData()));
}