@Test
void testSerializationAsList() throws IOException, JSONException {

	MapDictionary map =  new MapDictionary(new DictionaryId(new DatasetId("dataset"), "dictionary"));
	DirectDictionary direct = new DirectDictionary(map);
	direct.add("a");
	direct.add("b");
	direct.add("c");
	
	String json = Jackson.MAPPER.writeValueAsString(map);
	assertThat(json)
		.startsWith("{\"type\":\"MAP_DICTIONARY\",\"name\":\"dictionary\",\"id2Value\":[")
		.endsWith("],\"dataset\":\"dataset\"}");
	SerializationTestUtil
		.forType(MapDictionary.class)
		.test(map);
}