You are right. What about renaming "getUri" to "toUri"?
What is the "atPage"? Is it the query term? If so, it should be
something as "queryFor(...)"
The get() method should use the same Restfulie instance that retrieved
the response on the last request, so you can test it invoked the
correct methods. You are right, you will need to add a custom
converter for search description, thats all... tjust take a look at
the xstream converter tutorial, it should solve it.
We can also enhance it later to do:
desc.use('application/xml').with(queryFor("guilherme")).and(page(2))
Well done!
Regards
Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/