updates.add(new IdentifiableVo(4));
updates.add(new IdentifiableVo(5));
updates.add(new IdentifiableVo(6));
updates.add(new IdentifiableVo(7));
CreateUpdateDeleteGroup group =
CollectionUtil.separateCreateUpdateDeleteObjects(current,
updates);
List<IdentifiableVo> toBeCreated = group.getToBeCreated();
Set<IdentifiableVo> toBeDeleted = group.getToBeDeleted();
Set<IdentifiableVo> toBeUpdated = group.getToBeUpdated();
assertEquals("Delete group size is incorrect.", 2, toBeDeleted.size());
assertEquals("Create group size is incorrect.", 4, toBeCreated.size());
assertEquals("Update group size is incorrect.", 1, toBeUpdated.size());