@Test public void testDictSerializer() throws Exception { DictionaryAtom dict = DictionaryAtom.newAtom(); ListAtom sublist = dict.newList("list"); DictionaryAtom subdict = dict.newDictionary("dict"); dict.setString("string", "string"); dict.setReal("real", 1.2f); dict.setInt("int", 12334); dict.setBoolean("bool", Boolean.FALSE); XMLSerializer ser = new XMLSerializer(); Document jsonString = ser.serializeTo(dict); ImmutableDict fromserializer = ser.serializeFrom(jsonString); Assert.assertEquals(dict, fromserializer); }