### Question:
LogoutUrl { public void setParameter(String key, String value) { builder.addParameter(key, value); } LogoutUrl(UrlBuilder builder, String locale); void setParameter(String key, String value); @Override String toString(); static final String LOGOUT_URL; }### Answer:
@Test public void testWeCanSetAParameter() throws Exception { LogoutUrl logoutUrl = new LogoutUrl(builder, "fr"); logoutUrl.setParameter("aParameter", "itsValue"); new LogoutUrl(builder, "fr"); verify(builder).addParameter("aParameter", "itsValue"); }