Image imageInDb = images.find(i1.getId());
assertEquals(i1, imageInDb);
}
public void testComparable() {
Post post1 = new Post(50, "Post1", 20L, 100, 0l, dbs);
Post post2 = new Post(70, "Post2", 20L, 100, 0l, dbs);
Post post3 = new Post(71, "Post2", 20L, 100, 0l, dbs);
Post post4 = new Post(100, "Post2", 20L, 100, 0l, dbs);
assertTrue(post1.compareTo(post2) < 0);
List<Post> posts = new ArrayList<Post>();
posts.add(post2);