- assertThat(response, notNullValue());
- assertThat(response.getReplyParameters(), notNullValue());
- assertThat(response.getReplyParameters().get("Message"), is("PostFeed"));
- assertThat(response.getReplyParameters().getInt("Posts.Count"), is(3));
- verifyPost(response.getReplyParameters(), "Posts.0.", localPost);
- assertThat(response.getReplyParameters().getInt("Posts.0.Replies.Count"), is(2));
- verifyPostReply(response.getReplyParameters(), "Posts.0.Replies.0.", friendReplyToLocalPost);
- verifyPostReply(response.getReplyParameters(), "Posts.0.Replies.1.", remoteReplyToLocalPost);
- verifyPost(response.getReplyParameters(), "Posts.1.", friendPost);
- verifyPost(response.getReplyParameters(), "Posts.2.", remotePost);
+ verifyAnswer(response, "PostFeed");
+ verifyPostsWithReplies(response.getReplyParameters(), "Posts.", asList(localPost, friendPost, remotePost));