}
@Test
public void testHandleGetPlural() throws Exception {
String path = "/activitystreams/john.doe,jane.doe/@self/@app";
RestHandler operation = registry.getRestHandler(path, "GET");
List<ActivityEntry> entries = ImmutableList.of();
RestfulCollection<ActivityEntry> data = new RestfulCollection<ActivityEntry>(entries);
Set<UserId> userIdSet = Sets.newLinkedHashSet(JOHN_DOE);
userIdSet.add(new UserId(UserId.Type.userId, "jane.doe"));
org.easymock.EasyMock.expect(service.getActivityEntries(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();
}