- assertThat((Collection<Post>) templateContext.get("posts"), containsInAnyOrder(post1, post2, post3));
+ assertThat((Collection<Post>) templateContext.get("posts"), contains(post1, post3, post2));
+ assertThat(((Pagination<Post>) templateContext.get("pagination")).getItems(), contains(post1, post3, post2));