@Test public void testDesearializeHappyCase() { UserEntity userEntity = jsonSerializer.deserialize(JSON_RESPONSE); assertThat(userEntity.getUserId(), is(1)); assertThat(userEntity.getFullname(), is("Simon Hill")); assertThat(userEntity.getFollowers(), is(7484)); }
public UserEntity deserialize(String jsonString) { UserEntity userEntity = gson.fromJson(jsonString, UserEntity.class); return userEntity; }
JsonSerializer { public UserEntity deserialize(String jsonString) { UserEntity userEntity = gson.fromJson(jsonString, UserEntity.class); return userEntity; } }
JsonSerializer { public UserEntity deserialize(String jsonString) { UserEntity userEntity = gson.fromJson(jsonString, UserEntity.class); return userEntity; }  }
JsonSerializer { public UserEntity deserialize(String jsonString) { UserEntity userEntity = gson.fromJson(jsonString, UserEntity.class); return userEntity; }  String serialize(UserEntity userEntity); UserEntity deserialize(String jsonString); }
JsonSerializer { public UserEntity deserialize(String jsonString) { UserEntity userEntity = gson.fromJson(jsonString, UserEntity.class); return userEntity; }  String serialize(UserEntity userEntity); UserEntity deserialize(String jsonString);  }