}
@Test
public void shouldUseTheRightUrl() {
SearchDescription desc = (SearchDescription) xstream.fromXML(new StringReader(xml));
Url url = desc.use("application/json");
assertThat(url.getType(), is(equalTo("application/json")));
assertThat(url.getTemplate(), is(equalTo("http://localhost:3000/products?q={searchTerms}&pw={startPage?}&format=json")));
}