private void buildCollectionResponseWithPagingAndCustomMetadata(List<List<? extends Object>> ret)
{
List<ResourceMethod> validTypes = Arrays.asList(FINDER, GET_ALL);
for (ResourceMethod type : ResourceMethod.values())
{
ret.add(Arrays.asList(type, null, null, Arrays.asList(Foo.createFoo("foo", "bar")), new CollectionMetadata(),
Foo.createFoo("md", "val"), null, ImmutableMap.of("key", "value"),
HttpStatus.S_202_ACCEPTED, !validTypes.contains(type)));
}
}