@Test
public void testLimitsOption() throws JsonProcessingException, IOException {

	ClientMapInfo map = new ClientMapInfo();
	map.setViewBoundsLimitOption(BoundsLimitOption.CENTER_WITHIN_MAX_BOUNDS);
	ObjectMapper objectMapper = printingController.getObjectMapper();
	String json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(map);
/		System.out.println(json);
	
	JsonNode tree = objectMapper.readTree(json);
	System.out.println(objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(tree));
	ObjectReader reader = objectMapper.reader(ClientMapInfo.class);
	ClientMapInfo m = (ClientMapInfo)reader.readValue(json);
	
	m = (ClientMapInfo)reader.readValue("{\n" + 
			"  \"class\" : \"org.geomajas.configuration.client.ClientMapInfo\",\n" + 
			"  \"viewBoundsLimitOption\" : \"CENTER_WITHIN_MAX_BOUNDS\" \n" + 
			"}");
	
}