public void testHandleGetActivityById() throws Exception {
String path = "/activities/john.doe/@friends/@app/1";
RestHandler operation = registry.getRestHandler(path, "GET");
Activity activity = new ActivityImpl();
org.easymock.EasyMock.expect(activityService.getActivity(eq(JOHN_DOE.iterator().next()),
eq(new GroupId(GroupId.Type.friends, null)),
eq("appId"), eq(ImmutableSet.<String>of()), eq("1"), eq(token))).andReturn(
ImmediateFuture.newInstance(activity));