/**
* Test stuff in the JSON that isn't mapped
* @throws IOException
*/
public void testFallThru() throws IOException {
Telex telex = (Telex)
JsonMapper.fromJson("{\"foo\": 1, \"bar\": true, \"baz\": {\"a\": [1,2,3]} }",
TelehashPackage.Literals.TELEX);
assertEquals(1, ((Integer)telex.get("foo")).intValue());
assertEquals(true, ((Boolean)telex.get("bar")).booleanValue());
@SuppressWarnings({ "rawtypes", "unchecked" })
List<Object> a = (List<Object>) ((Map)telex.get("baz")).get("a");
for (int i = 0; i < 3; i++) {
assertEquals(i + 1, ((Integer)a.get(i)).intValue());
}
}