i1.save();
User u1 = i1.createUser();
assertEquals(Long.valueOf(u1.getId()), Long.valueOf(i1.getUserId()));
IUserPersistence users = dbs.getDatabase1().users();
User userInDb = users.find(i1.getUserId());
assertEquals(u1, userInDb);
Image imageInDb = images.find(i1.getId());
assertEquals(i1, imageInDb);
}