flat.put("caption", caption);
flat.put("width", width);
flat.put("height", height);
flat.put("photos", photos);
Gson gson = new GsonBuilder().registerTypeAdapter(Post.class, new PostDeserializer()).create();
post = (PhotoPost) gson.fromJson(flatSerialize(flat), Post.class);
}
@Test
public void testReaders() {
assertEquals(caption, post.getCaption());