public void testUserRepos() throws Exception
{
RequestBuilder builder = new RequestBuilder("GET");
Request request = builder.setUrl(
UriTemplate.fromTemplate(BASE)
.append("/users/{user}/repos")
.append(PAGINATION)
.set("user", "damnhandy")
.set("repo", "repos")
.set("page", 1)
.set("per_page", 4)
.expand()).build();
Assert.assertEquals("https://api.github.com/users/damnhandy/repos?page=1&per_page=4", request.getUrl());
executeRequest(createClient(), request);
}