@Test
	public void testGenericMap() {

		Map<String, Object> stringObjects = new HashMap<String, Object>();
		stringObjects.put("criteria1", "string");
		stringObjects.put("criteria2", 55);
		stringObjects.put("criteria3", 10.78);

		Value value = new Value("{\"criteria1\": \"string\", \"criteria2\": 55, \"criteria3\": 10.78}");

		assertThat(stringObjects, equalTo(value.map(String.class, Object.class)));

		Map<String, Integer> stringIntegers = new HashMap<String, Integer>();
		stringIntegers.put("apple", 44);
		stringIntegers.put("orange", 1893);
		stringIntegers.put("banana", -99);

		value = new Value("{\"apple\": 44, \"orange\": 1893, \"banana\": -99}");

		assertThat(stringIntegers, equalTo(value.map(String.class, Integer.class)));

	}