@Test
public void createJSONObjectFromMapTest() throws Exception
{

  Map<String, String> mapVals = Maps.newHashMap();
  mapVals.put("a", "1");
  mapVals.put("b", "2");
  JSONObject jo = SchemaUtils.createJSONObject(mapVals);
  Assert.assertEquals(2, jo.length());
  Assert.assertEquals("1", jo.get("a"));
  Assert.assertEquals("2", jo.get("b"));
}