}
}
public void testGetContent() {
String contentURL = "facebook/accessTokenKey/212001712166365/event";
Content c = eventBuilder.getContent(contentURL);
assertEquals(contentProvider.getId(), c.getProvider());
assertEquals(ContentTypeEnum.EVENT.name(), c.getType());
assertEquals(contentURL, c.getContentUrl());
assertTrue(c.getAttributes().size() > 0);
assertEquals("212001712166365", c.getAttributeByName("id").getValue());
assertEquals("Special meetup related to FP7 projects "
+ "Insemtives, LarKC and Planet Data",
c.getAttributeByName("name").getValue());
assertNotNull(c.getAttributeByName("start_time").getValue());
assertNotNull(c.getAttributeByName("end_time").getValue());
Calendar cal = Calendar.getInstance();
long et = Long.valueOf(c.getAttributeByName("endTime").getValue()).longValue();
cal.setTimeInMillis(et);
assertEquals(2011, cal.get(Calendar.YEAR));
assertEquals(Calendar.AUGUST, cal.get(Calendar.MONTH));
assertEquals(26, cal.get(Calendar.DAY_OF_MONTH));