### Question:
UrlQuery { String encodedQuery() { return encodedQuery; } private  UrlQuery(List<Parameter> parameters); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void providesEncodedQuery() { assertThat(query.encodedQuery(), is("foo=alpha&bar=beta&foo=gamma")); }