*/
@Test
@SuppressWarnings("unchecked")
public void testUntypedMap() throws IOException, SerializationException {
JSONSerializer mapSerializer = new JSONSerializer(HashMap.class);
HashMap<String, ?> map = (HashMap<String, ?>)mapSerializer.readObject(new StringReader("{a:1, b:2, c:'3'}"));
assertEquals(map.get("a"), 1);
}
/**
* Tests returning a typed map using {@code org.apache.pivot.util.TypeLiteral}.