JsonUtils { public static <T> T deserialize(String json, Class<T> clz) throws JsonSyntaxException { return mGson.fromJson(json, clz); }  static String serialize(T object); static T deserialize(String json, Class<T> clz); static T deserialize(JsonObject json, Class<T> clz); static T deserialize(String json, Type type);  }
@Test public void testDeserialize() throws Exception { assertNotNull(JsonUtils.deserialize("{\"name\":\"Lauren\",\"sex\":\"男\"}", User.class)); }
@Test public void testDeserialize1() throws Exception { assertNotNull(JsonUtils.deserialize("{\"name\":\"Lauren\",\"sex\":\"男\"}", User.class)); }