// Check that the encoded property matches the convention for our lists.
String json = objectToJson(lst);
ApiObjectMapper mapper = new ApiObjectMapper();
@SuppressWarnings("unchecked")
Map<String, Object> map = mapper.readValue(json, Map.class);
assertTrue("List " + lst.getClass().getName() + " has wrong 'items' property.",
map.containsKey(ApiListBase.ITEMS_ATTR));
}
}