PageParameters params = resource.pageParameters;
assertNotNull(params);
assertEquals(3, params.getAllNamed().size());
assertEquals(2, params.getIndexedCount());
StringValue paramId = params.get(0);
assertNotNull(paramId);
assertEquals(1, paramId.toInt());
StringValue paramName = params.get(1);
assertNotNull(paramName);
assertEquals("fred", paramName.toString());
List<StringValue> foo = params.getValues("foo");
assertNotNull(foo.size() == 2);
assertEquals("bar", foo.get(0).toString(""));
assertEquals("baz", foo.get(1).toString(""));
StringValue paramValue = params.get("value");
assertEquals(12, paramValue.toInt());
}