entityManager.persist(activity1);
ActivityDb activity2 = buildActivityTemplate("jane.doe", "1");
activity2.setBody("and she thinks you look like him");
List<MediaItem> mediaItems = new ArrayList<MediaItem>();
MediaItemDb mediaItem1 = new MediaItemDb();
mediaItem1.setMimeType("image/jpeg");
mediaItem1.setType(MediaItem.Type.IMAGE);
mediaItem1.setUrl("http://animals.nationalgeographic.com/staticfiles/NGS/Shared/StaticFiles/animals/images/primary/black-spider-monkey.jpg");
MediaItemDb mediaItem2 = new MediaItemDb();
mediaItem2.setMimeType("image/jpeg");
mediaItem2.setType(MediaItem.Type.IMAGE);
mediaItem2.setUrl("http://image.guardian.co.uk/sys-images/Guardian/Pix/gallery/2002/01/03/monkey300.jpg");
mediaItems.add(mediaItem1);
mediaItems.add(mediaItem2);
activity2.setMediaItems(mediaItems);
activity2.setStreamTitle("jane's photos");
activity2.setTitle("Jane just posted a photo of a monkey");
entityManager.persist(activity2);
ActivityDb activity3 = buildActivityTemplate("jane.doe", "2");
activity3.setBody("or is it you?");
List<MediaItem> mediaItems2 = new ArrayList<MediaItem>();
MediaItemDb mediaItem3 = new MediaItemDb();
mediaItem3.setMimeType("image/jpeg");
mediaItem3.setType(MediaItem.Type.IMAGE);
mediaItem3.setUrl("http://www.funnyphotos.net.au/images/fancy-dress-dog-yoda-from-star-wars1.jpg");
mediaItems2.add(mediaItem3);
activity3.setMediaItems(mediaItems2);
activity3.setStreamTitle("jane's photos");
activity3.setTitle("Jane says George likes yoda!");
entityManager.persist(activity3);