mediaItem2.setUrl("http://www.archive.org/download/testmp3testfile/mpthreetest.mp3");
mediaItems.add(mediaItem1);
mediaItems.add(mediaItem2);
activity.setMediaItems(mediaItems);
activity.setPostedTime(1111111111L);
Map<String, String> templateParams = new MapMaker().makeMap();
templateParams.put("small", "true");
templateParams.put("otherContent", "and got wet");
activity.setTemplateParams(templateParams);
activity.setTitle("My trip");
activity.setTitleId("1");
activity.setUpdated(new Date());
activity.setUrl("http://www.example.org/canonical/activities/1");
} else if ("2".equals(id)) {
activity.setBody("Went skiing");
activity.setBodyId("2");
activity.setExternalId("http://www.example.org/123457");
List<MediaItem> mediaItems = new ArrayList<MediaItem>();
activity.setMediaItems(mediaItems);
activity.setPostedTime(1111111112L);
Map<String, String> templateParams = new MapMaker().makeMap();
templateParams.put("small", "true");
templateParams.put("otherContent", "and went fast");
activity.setTemplateParams(templateParams);
activity.setTitle("My next trip");
activity.setTitleId("2");