@Test
public void should_get_map_by_json_object() throws Exception {

    JsonObject object = new JsonObject();
    object.addProperty("1", 11L);
    object.addProperty("2", 22L);
    Map<String, Object> map = new HashMap<>();
    map.put("1", 11L);
    map.put("2", 22L);
    Map actual = JsonUtils.toMap(object);
    assertThat("Should return same map size", actual.size(), is(map.size()));
    assertThat(actual.get("1"), is(map.get("1")));
    assertThat(actual.get("2"), is(map.get("2")));
    assertThat(actual, is(map));
}