}
@Test
public void testHandleGetPlural() throws Exception {
String path = "/activities/john.doe,jane.doe/@self/@app";
RestHandler operation = registry.getRestHandler(path, "GET");
List<Activity> activities = ImmutableList.of();
RestfulCollection<Activity> data = new RestfulCollection<Activity>(activities);
Set<UserId> userIdSet = Sets.newLinkedHashSet(JOHN_DOE);
userIdSet.add(new UserId(UserId.Type.userId, "jane.doe"));
org.easymock.EasyMock.expect(activityService.getActivities(eq(userIdSet),
eq(new GroupId(GroupId.Type.self, null)), eq("appId"),eq(ImmutableSet.<String>of()),
org.easymock.EasyMock.isA((CollectionOptions.class)), eq(token))).andReturn(
ImmediateFuture.newInstance(data));
replay();
assertEquals(data, operation.execute(Maps.<String, String[]>newHashMap(),
null, token, converter).get());
verify();
reset();
}