List<Comment> comments = a.getAll(Comment.class).orderBy("id");
a(comments.size()).shouldBeEqual(2);
a(comments.get(0).get("author")).shouldBeEqual("ipolevoy");
Post p = Post.findById(2);
p.add(Comment.create("author", "jjohnes", "content", "this is just a test comment text"));
p.add(Comment.create("author", "alapsi", "content", "this is another test comment text"));
p.add(Comment.create("author", "kmandy", "content", "this is just a test comment text"));
comments = p.getAll(Comment.class).orderBy("id");
a(comments.size()).shouldBeEqual(3);
a(comments.get(0).get("author")).shouldBeEqual("jjohnes");
a(comments.get(1).get("author")).shouldBeEqual("alapsi");
a(comments.get(2).get("author")).shouldBeEqual("kmandy");