builder.pathParam("id", "1").build(links);
assertEquals(1, links.size());
assertLink(links, null, null, "1");
links.clear();
builder.subResource("a/{subId}/b").pathParam("subId", "2").build(links);
assertEquals(1, links.size());
assertLink(links, null, null, "1/a/2/b");
return "";
}