    @Test
    public void testSerialization() {

        final JSONSerializer ser = new JSONSerializer();
        final NamespaceConfig nsConf = new NamespaceConfig("test_ns", 100, "userid", null);
        nsConf.defineExperiment("def", (Map<String, ?>)TEST_DEF);
        nsConf.setDefaultExperiment("def");
        nsConf.addExperiment("def_exp", "def", 100);
        nsConf.noMoreChanges();
        final Map<String, ?> input = ImmutableMap.of("userid", 12345);
        final Namespace ns = new Namespace(nsConf, input, null);
        System.out.println(ser.doForward(new LogRecord(ns, input, null)));
    }