@Test
public void testJsonObjectToMap() throws Exception {

    Method method = PojoUtilsTest.class.getMethod("setMap", Map.class);
    assertNotNull(method);
    JSONObject jsonObject = new JSONObject();
    jsonObject.put("1", "test");
    @SuppressWarnings("unchecked")
    Map<Integer, Object> value = (Map<Integer, Object>)PojoUtils.realize(jsonObject,
            method.getParameterTypes()[0],
            method.getGenericParameterTypes()[0]);
    method.invoke(new PojoUtilsTest(), value);
    assertEquals("test", value.get(1));
}