### Question:
UserInfoHandler extends AbstractContactHandler<UserInfo> { @Override public UserInfo handle(JsonObject result) { return gson.fromJson(result, UserInfo.class); }  @Override UserInfo handle(JsonObject result); @Override List<UserInfo> handle(JsonArray array);  }### Answer:
@Test public void testHandleJsonObject() { String json = FileUtils.readString(getClass().getResourceAsStream( "get_self_info2.json"), null); JsonObject obj = new JsonParser().parse(json).getAsJsonObject().getAsJsonObject("result"); UserInfo t = new UserInfoHandler().handle(obj); assertEquals("157250921", t.getAccount()); }