@Test
public void testHandleGetActivityEntryById() throws Exception {
String path = "/activitystreams/john.doe/@friends/@app/myObjectId123"; // TODO: change id=1 in DB for consistency
RestHandler operation = registry.getRestHandler(path, "GET");
ActivityEntry entry = new ActivityEntryImpl();
org.easymock.EasyMock.expect(service.getActivityEntry(eq(JOHN_DOE.iterator().next()),
eq(new GroupId(GroupId.Type.friends, null)),
eq("appId"), eq(ImmutableSet.<String>of()), eq("myObjectId123"), eq(token))).andReturn(
ImmediateFuture.newInstance(entry));